[jdom-interest] PLEASE HELP ! NEED SOME SAMPLE CODE !!!!
Pandia, Rajesh
rajesh.pandia at matrixone.com
Fri Oct 4 07:27:38 PDT 2002
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.
More interested in finding how to parse:
<SyncExpression action="Add">Supplier</SyncExpression>
Thanks in Advance,
- rajesh
Here is the XML document, it is a standard OAG BOD.
<?xml version="1.0" encoding="utf-8"?>
<!--
License information for this file is provided in LICENSE.TXT
For support, more information, or to report implementation bugs,
please contact the Open Applications Group at xml at openapplications.org
** Revision: 8.0 **
** Date: 05 April 2002 **
Open Applications Group Sample XML Data
Copyright 1998-2002, All Rights Reserved
Name: SyncParty.xml
-->
<SyncParty xmlns="http://www.openapplications.org/oagis"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.openapplications.org/oagis
../BODs/SyncParty.xsd" revision="8.0" environment="Production" lang="en-US">
<ApplicationArea>
<CreationDateTime>2002-08-07T09:30:47-05:00</CreationDateTime>
</ApplicationArea>
<DataArea>
<Sync confirm="Always">
<SyncCriteria expressionLanguage="XPath">
<SyncExpression
action="Add">Supplier</SyncExpression>
</SyncCriteria>
</Sync>
<Party active="false" oneTime="false">
<AlternatePartyIds>
<SupplierPartyId>
<Id>100000000480</Id>
</SupplierPartyId>
</AlternatePartyIds>
<Name lang="en-us">Armada Rubber MFG Co.</Name>
<Business>
<UserArea/>
<PartnerType>DIR</PartnerType>
<MinorityOwned>false</MinorityOwned>
<SmallBusiness>false</SmallBusiness>
<WomanOwned>false</WomanOwned>
<Federal1099Supplier>false</Federal1099Supplier>
<State1099Supplier>true</State1099Supplier>
</Business>
<Currency>USD</Currency>
<Description lang="en-us" owner="String">Rubber
Supplier</Description>
<TaxExemptInd>false</TaxExemptInd>
<TaxId>555-55-5555</TaxId>
<TermId>String</TermId>
<Addresses>
<PrimaryAddress>
<AddressId qualifyingAgency="J
9.0">50001111</AddressId>
<AddressId qualifyingAgency="J
8.5">240054</AddressId>
<AddressId
qualifyingAgency="DUNS">240000240</AddressId>
<AddressLine>Armada
Circle</AddressLine>
<AddressLine>Headquarters</AddressLine>
<City>Armanda</City>
<StateOrProvince>MI</StateOrProvince>
<Country>USA</Country>
<PostalCode>48000</PostalCode>
<Telephone>800-240-2454</Telephone>
<FaxNumber>800-240-2455</FaxNumber>
<LocationType>Headquarters</LocationType>
<LocationName>ARMADA-50001111</LocationName>
</PrimaryAddress>
</Addresses>
<Contacts>
<PrimaryContact>
<Person>
<PersonName>
<Salutation>Mr.</Salutation>
<GivenName>John</GivenName>
<FamilyName>Doe</FamilyName>
</PersonName>
</Person>
</PrimaryContact>
</Contacts>
<UserArea/>
</Party>
</DataArea>
</SyncParty>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20021004/916c4e42/attachment.htm
More information about the jdom-interest
mailing list