[XOM-interest] beginner questions

Michael Kay mike at saxonica.com
Wed May 13 17:30:34 EDT 2009


>     1) if I have the following .xml file:
> 
>  
> 
>             <map>w
w 
wwwwwwwwwwwwwwwww<book>God - Deepak Chopraw
w 
wwwwwwwwwwwwwwwww</book>w
w 
wwwwwwwwwwwwwwwwww<resource>w
w 
wwwwwwwwwwwwwwwwww</resource>w
w 
wwwwwwwwwwwww</map> 
> 
>              
> 
>          Does the corresponding Document for this file have 
> three Text elements (one for each tag, in the 0 position of 
> Elements of its tag), or only one Text element ("God - Deepak 
> Chopra")?

It has five text nodes (not elements!), four of which contain whitespace
characters only. I have marked the contents of these nodes by filling them
out with "w" characters above.

Note also, your document above has 6 tags, two for each element. It helps to
get the terminology straight.
  
> 
>     2) where do I find, on the web, complete documentation 
> about the use of the xom?
> 
>  

Google for "XOM Javadoc".

Michael Kay
http://www.saxonica.com/



More information about the XOM-interest mailing list