Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Reading Arbitrary XML
amitjain
Hi All,
I have to read DCR in Arbitrary XML format in a TPL.
The file is in the below format: (plz ignore the closing tags)
<Country Name="india" capital="delhi">
<language>Hindi</language>
<Polpulation>100 million</Population>
<Country Name="Germany" capital="Berlin">
<language>Deutche</language>
<Polpulation>20 Million</Population>
I used iw_load_dcr and cud read it properly except for its values like Name="india" and capital="delhi" etc...
can anybody give me a example of using DCRnode or DCRparser which access Values inside the XML tags.
There are replicants inside which has to be used too.
Thanks in advance.
Find more posts tagged with
Comments
abhishek_gupta
Don't know what you mean by a DCR in arbitary XML format. The DCR would be in a format of something like -
<item name="****">
<value>YYY</value>
</item>
What you are trying to achieve is to read the attributes of a node. You can use XML DOM and read the attributes easliy if you want to read a XML.
AK
Interwoven TeamSite Consultant
amitjain
Hi AK,
No, this is not a DCR in <value> </value> and <item> </item> format (This is a Traditional DCR format XML)
DCR in Teamsite are of two kinds:
1. Traditional DCR format
2. DCR in Arbitrary XML format which is of the format of any generic XML file.
Thanks.
james1
Please run:
IWHOME/iw-perl/bin/perldoc TeamSite::XMLparser
and read the documentation.
-- James
--
James H Koh
Interwoven Engineering
Logs.txt