Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Dynamically naming Nodes.

From: "Joe Fawcett" <joefawcett@----------.------>
To: NULL
Date: 4/9/2005 11:28:00 PM
"Binny" <Binny@d...> wrote in message 
news:70BC4258-7CD7-4269-BC1F-F67F5F30E21A@m......
> Hi Folks,
>
> We are currently writting generic PL/SQL APIs to generate XML based on the
> data in the tables.
>
> We have the following requirements:
>
>    * Let us say a table consists of two columns namely "ProductName"
> "ProductValue".
>    * Now I have to generate XML in the following way:
>          o <ProductName>ProductValue<ProductValue>
>    * So what we are saying is that the Node's name in the XML is dynamic.
>    * For example if the table consisted of the following values
>
> Product Name      Product Value
> ----------------------------------
> A                             100
> B                             200
> C                             300
>
>
> We want the XML as
>
> <A>100</A>
> <B>200</B>
> <C>300</C>
>
>
> Primarily we want to understand a way to create XML where the NAMES OF THE
> NODES themsleves are known only at run-time.
>
> I understand that this a wierdo requirement :-) ........but well....lets
> just say I have no other option... :-) ..
>
> We tried SQLX and XMLGen but were'nt very successful.
>
> Appreciate any help in this requirement.
>
>
>
> Regards
>
Aside from the fact that xml with this structure is going to be a nightmare to 
process it shouldn't be too difficult. What exactly do you have to start with 
and in what environment are you processing?

-- 

Joe (MVP - XML)

https://mvp.support.microsoft.com/profile=8AA9D5F5-E1C2-44C7-BCE8-8741D22D17A5 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent