Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Viewpoint XML Schema    xpath within xsd:restriction tad

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Junior Member
Posted
Hello All,

I would like to enforce validation based on the existence of absence of a certain value in the input XML.

So if my XML is as shown below.

<root>
<a>hello</a>
<b>world</b>
</root>

I would like to add a rule which says that node b, shouldnt be empty if the value of node a is "hello".

It looks very simple, but i am not able to figure out, how i can write an xpath within xsd:restriction and then check for a particular value.

Any help would be great!!!

Regards,
Sinu
 
Posts: 1 | Registered: March 04, 2008Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Viewpoint XML Schema    xpath within xsd:restriction tad