aspose file tools*
The moose likes XML and Related Technologies and the fly likes xml to DNAList conversion...... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xml to DNAList conversion......" Watch "xml to DNAList conversion......" New topic
Author

xml to DNAList conversion......

aarti savant
Greenhorn

Joined: Oct 27, 2003
Posts: 11
Hi everyone,
what is the best way to convert a xml document to a DNAList...DNAList is a data structure from Blue Martini product suite, which is basically a HashMap like data structure with name, type and value pair...I will post an example below...

Here is the xml I generated from resultset object.
<?xml version="1.0" encoding="UTF-8"?>
<dna xmlns="http://bluemartini.com/eng/arch/dna/name/" xmlns:dna="http://bluemartini.com/eng/arch/dna/type/">
<priceOverrideAccomBasePrice type="dna">
<use_quote_override_price type="dna">
<B2B type="boolean">true</B2B>
<B2C type="boolean">false</B2C>
</use_quote_override_price>
</priceOverrideAccomBasePrice>
</dna>


and here is the DNAList i want this converted to :

DNA {
"priceOverrideAccomBasePrice" DNA {
"use_quote_override_price" DNA {
"B2B" Boolean "true",
"B2C" Boolean "false"
}
}
}

Any pointers or XSL templates towards this direction will be highly appreciated.

Thanks
Arati
 
 
subject: xml to DNAList conversion......