Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Parsing XML doc having Schema ... /Schema and then data ... /data

0 views
Skip to first unread message

Magnus

unread,
Apr 13, 2005, 9:48:52 PM4/13/05
to
Hello!

I have a XML doc with the layout as inserted below. When I looked at the
examples I got for SAX and DOM parsing the structure described was
something like:
<TAG>text</TAG>
SAX would trigger events and I can pick up "text" and DOM will build a
tree that I can traverse and find the "text".

Is there a function I missed? Is there other ways to parse XML docs as
below?

Thanks in advance,

Magnus

--- example ---

<xml>
<s:Schema id="RSchema">
<s:ElementType name="row" content="y" rs:updatable="true">
<s:AttributeType name="DOC" rs:number="1" rs:writeunknown="true"
rs:basetable="DDATA" rs:basecolumn="DOC">
<s:datatype dt:type="string" rs:dbtype="str" dt:maxLength="32"
rs:maybenull="false"/>
</s:AttributeType>

... more attributTypes ...

<s:extends type="rs:rowbase"/>
</s:ElementType>
</s:Schema>
<rs:data>
<z:row DOC="A474ED9CFA5D4D779D7DFAB9EEB6BZZ6"
DATA="d0cf11e0a1b11ae1000000000000000000000000000000003e000300feff09
...
000030000000c01000004000000280100000500000000" DATALENGTH="999"
INUSE="0" CREATED="2005-01-01T01:01:01" UPDATED="2005-01-01T01:01:01"
ROWID="SDAJJXAAWAAAAy8ZZ"/>
</rs:data>
</xml>

0 new messages