Resolved PBDOM
- How-to
- Malek Taha
- PowerBuilder
- Tuesday, 15 August 2023 10:24 PM UTC
Hi
This is my first time working with XML and i want to use the PDOM to build the document.
I have this xml exported from a datawindow
<?xml version="1.0" ?>
<Phonebook>
<Family>
<Malek>
<Name>Malek Taha</Name>
<PhoneNumber>1112223333</PhoneNumber>
<Address>
<AddressLine1>1 Main Street </AddressLine1>
<AddressLine2 />
<AddressLine3 />
<City>Detroit</City>
<StateProvinceCode>MI</StateProvinceCode>
<PostalCode>11222</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</Malek>
<Lisa>
<Name>Lisa Doe</Name>
<PhoneNumber>1112223333</PhoneNumber>
<Address>
<AddressLine1>2 Main Street </AddressLine1>
<AddressLine2 />
<AddressLine3 />
<City>Detroit</City>
<StateProvinceCode>MI</StateProvinceCode>
<PostalCode>11222</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</Lisa>
<Tina>
<Name>Tina Doe</Name>
<PhoneNumber>1112223333</PhoneNumber>
<Address>
<AddressLine1>3 Main Street </AddressLine1>
<AddressLine2 />
<AddressLine3 />
<City>Detroit</City>
<StateProvinceCode>MI</StateProvinceCode>
<PostalCode>11222</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</Tina>
</Family>
</Phonebook>
I want to add this document in the above document after the <Lisa> eliment.
<Mary>
<Name>Mary Doe</Name>
<PhoneNumber>1112223333</PhoneNumber>
<Address>
<AddressLine1>4 Main Street </AddressLine1>
<AddressLine2 />
<AddressLine3 />
<City>Detroit</City>
<StateProvinceCode>MI</StateProvinceCode>
<PostalCode>11222</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</Mary>
Pleaase help
Thanks
Malek
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.