Examples of Comparisons

The following query finds all authors whose last name is Bob:

author[last-name = "Bob"]
               

            

The next query finds authors whose degrees are not from Harvard:

author/degree[@from != "Harvard"]
               

            

The following query returns prices that are greater than 20 dollars. This assumes that the current context contains one or more price elements.

price [. > 20]
               

            

EDI to XML Mapping in Stylus Studio

Learn how to use Stylus Studio's EDI to XML mapping tools in Convert-to-XML, including loading an EDI file, inspecting application control codes, customizing XML output and other advanced EDI to XML mapping features.

XML Generator

Create sample XML instance documents from any XML Schema using the XML Generator. The generated XML document is always valid, well-formed XML!

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member