<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>PLEASE HELP ! NEED SOME SAMPLE CODE !!!!</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2 FACE="Courier New">Can somebody help me with an example on how to parse this XML document using JDOM ? Even a similar document would do. I checked the samples and could not find anything useful.</FONT></P>
<P><FONT SIZE=2 FACE="Courier New">More interested in finding how to parse:</FONT>
<BR><FONT SIZE=2 FACE="Courier New"><SyncExpression action="Add">Supplier</SyncExpression></FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">Thanks in Advance,</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">- rajesh</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">Here is the XML document, it is a standard OAG BOD.</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New"><?xml version="1.0" encoding="utf-8"?></FONT>
<BR><FONT SIZE=2 FACE="Courier New"><!--</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> License information for this file is provided in LICENSE.TXT</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> For support, more information, or to report implementation bugs, </FONT>
<BR><FONT SIZE=2 FACE="Courier New"> please contact the Open Applications Group at xml@openapplications.org </FONT>
<BR><FONT SIZE=2 FACE="Courier New"> </FONT>
<BR><FONT SIZE=2 FACE="Courier New"> ** Revision: 8.0 **</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> ** Date: 05 April 2002 **</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> Open Applications Group Sample XML Data</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> Copyright 1998-2002, All Rights Reserved</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> Name: SyncParty.xml</FONT>
<BR><FONT SIZE=2 FACE="Courier New">--></FONT>
<BR><FONT SIZE=2 FACE="Courier New"><SyncParty xmlns="<A HREF="http://www.openapplications.org/oagis" TARGET="_blank">http://www.openapplications.org/oagis</A>" xmlns:xsi="<A HREF="http://www.w3.org/2001/XMLSchema-instance" TARGET="_blank">http://www.w3.org/2001/XMLSchema-instance</A>" xsi:schemaLocation="<A HREF="http://www.openapplications.org/oagis" TARGET="_blank">http://www.openapplications.org/oagis</A> ../BODs/SyncParty.xsd" revision="8.0" environment="Production" lang="en-US"></FONT></P>
<P> <FONT SIZE=2 FACE="Courier New"><ApplicationArea></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><CreationDateTime>2002-08-07T09:30:47-05:00</CreationDateTime></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"></ApplicationArea></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><DataArea></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><Sync confirm="Always"></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><SyncCriteria expressionLanguage="XPath"></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><SyncExpression action="Add">Supplier</SyncExpression></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"></SyncCriteria></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"></Sync></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><Party active="false" oneTime="false"></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><AlternatePartyIds></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><SupplierPartyId></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><Id>100000000480</Id></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"></SupplierPartyId></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"></AlternatePartyIds></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><Name lang="en-us">Armada Rubber MFG Co.</Name></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><Business></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><UserArea/></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><PartnerType>DIR</PartnerType></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><MinorityOwned>false</MinorityOwned></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><SmallBusiness>false</SmallBusiness></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><WomanOwned>false</WomanOwned></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><Federal1099Supplier>false</Federal1099Supplier></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><State1099Supplier>true</State1099Supplier></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"></Business></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><Currency>USD</Currency></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><Description lang="en-us" owner="String">Rubber Supplier</Description></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><TaxExemptInd>false</TaxExemptInd></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><TaxId>555-55-5555</TaxId></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><TermId>String</TermId></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><Addresses></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><PrimaryAddress></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><AddressId qualifyingAgency="J 9.0">50001111</AddressId></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><AddressId qualifyingAgency="J 8.5">240054</AddressId></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><AddressId qualifyingAgency="DUNS">240000240</AddressId></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><AddressLine>Armada Circle</AddressLine></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><AddressLine>Headquarters</AddressLine></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><City>Armanda</City></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><StateOrProvince>MI</StateOrProvince></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><Country>USA</Country></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><PostalCode>48000</PostalCode></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><Telephone>800-240-2454</Telephone></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><FaxNumber>800-240-2455</FaxNumber></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><LocationType>Headquarters</LocationType></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><LocationName>ARMADA-50001111</LocationName></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"></PrimaryAddress></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"></Addresses></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><Contacts></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><PrimaryContact></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><Person></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><PersonName></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><Salutation>Mr.</Salutation></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><GivenName>John</GivenName></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><FamilyName>Doe</FamilyName></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"></PersonName></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"></Person></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"></PrimaryContact></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"></Contacts></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"><UserArea/></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"></Party></FONT>
<BR> <FONT SIZE=2 FACE="Courier New"></DataArea></FONT>
<BR><FONT SIZE=2 FACE="Courier New"></SyncParty></FONT>
</P>
</BODY>
</HTML>