Two Laptop Bag*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xml to DNAList conversion......" Watch "xml to DNAList conversion......" New topic

xml to DNAList conversion......

aarti savant

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="" xmlns:dna="">
<priceOverrideAccomBasePrice type="dna">
<use_quote_override_price type="dna">
<B2B type="boolean">true</B2B>
<B2C type="boolean">false</B2C>

and here is the DNAList i want this converted to :

"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.

subject: xml to DNAList conversion......
Similar Threads
javax.jms.JMSSecurityException: User null is NOT authenticated
stuck up in the problem
ORA-00001: unique constraint exception
hbm.xml file does an update instead of an insert- Helppppp
doubt on a question from ibm test