🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.xml
1 messages
1 total messages Started by Magnus Thu, 14 Apr 2005 01:48
Parsing XML doc having Schema ... /Schema and then data ... /data
#32
Author: Magnus
Date: Thu, 14 Apr 2005 01:48
41 lines
2172 bytes
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>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads