Hello,

I am hoping someone can help get me started on this task. I am getting
an XML string back from a web service call which I load into an XML
object. Part of the XML string contains the XSD schema for the actual
data. (the XML is actually an Oracle ResultSet that has been
serialized to an XML string including schema. (see sample included below).

I noticed that the XMLDecoder class takes as parameters a
SchemaVersion, and a SchemaContext class as parameters in addition to
the root node. From what I can tell from the signatures for the
SchemaContext class, it has a SchemaVersion proeprty to it. I see a
'registerSchemaNode' method, and I would hope that I could take the
schema node portion of the XML result object and register this
SchemaContext class?

Is this the correct approach? Can someone provide just a tad bit of
guidance on this? I can't seem to find a single bit of documentation
on this (other than the class signatures)...

Thanks in advance,
Thunder

See the XML payload I have below...
_____________________________

<?xml version = '1.0'?>
<DOCUMENT xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
<xsd:element name="ROWSET">
<xsd:complexType> <xsd:sequence>
<xsd:element name="ROW" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType> <xsd:sequence>
<xsd:element name="Carrier" nillable="true" minOccurs="0">
<xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength
value="50"/> </xsd:restriction> </xsd:simpleType>
</xsd:element>
<xsd:element name="Year" nillable="true" minOccurs="0">
<xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength
value="4"/> </xsd:restriction> </xsd:simpleType>
</xsd:element>
<xsd:element name="NetAdds" type="xsd:integer" nillable="true"
minOccurs="0"/>
<xsd:element name="EndSubs" type="xsd:integer" nillable="true"
minOccurs="0"/>
<xsd:element name="NetHandsets" type="xsd:integer" nillable="true"
minOccurs="0"/>
<xsd:element name="QCTShare" type="xsd:integer" nillable="true"
minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="num" type="xsd:integer"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence> </xsd:complexType>
</xsd:element>
</xsd:schema>
<ROWSET xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="#/DOCUMENT/xsd:schema[not(@targetNamespace)]">
<ROW num="1"> <Carrier>ATT</Carrier> <Year>2003</Year>
<NetAdds>21.983</NetAdds> <EndSubs>21.983</EndSubs>
<NetHandsets>23.731</NetHandsets> <QCTShare>0</QCTShare> </ROW>
<ROW num="2"> <Carrier>ATT</Carrier> <Year>2004</Year>
<NetAdds>-21.983</NetAdds> <EndSubs>0</EndSubs>
<NetHandsets>-8.741</NetHandsets> <QCTShare>0</QCTShare> </ROW>
<ROW num="3"> <Carrier>ATT</Carrier> <Year>2005</Year>
<NetAdds>0</NetAdds> <EndSubs>0</EndSubs> <NetHandsets>0</NetHandsets>
<QCTShare>0</QCTShare> </ROW>
<ROW num="4"> <Carrier>ATT</Carrier> <Year>2006</Year>
<NetAdds>0</NetAdds> <EndSubs>0</EndSubs> <NetHandsets>0</NetHandsets>
<QCTShare>0</QCTShare> </ROW>
<ROW num="5"> <Carrier>ATT</Carrier> <Year>2007</Year>
<NetAdds>0</NetAdds> <EndSubs>0</EndSubs> <NetHandsets>0</NetHandsets>
<QCTShare>0</QCTShare> </ROW>
<ROW num="6"> <Carrier>ATT</Carrier> <Year>2008</Year>
<NetAdds>0</NetAdds> <EndSubs>0</EndSubs> <NetHandsets>0</NetHandsets>
<QCTShare>0</QCTShare> </ROW>
<ROW num="7"> <Carrier>ATT</Carrier> <Year>2009</Year>
<NetAdds>0</NetAdds> <EndSubs>0</EndSubs> <NetHandsets>0</NetHandsets>
<QCTShare>0</QCTShare> </ROW>
<ROW num="8"> <Carrier>ATT</Carrier> <Year>2010</Year>
<NetAdds>0</NetAdds> <EndSubs>0</EndSubs> <NetHandsets>0</NetHandsets>
<QCTShare>0</QCTShare> </ROW>
</ROWSET>
</DOCUMENT>





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to