473,505 Members | 14,252 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML::Simple Print Path of all leaf nodes

2 New Member
Is it possible to print the path of all leaf nodes of an XML using XML::Simple
This is the kind of output text that i'm trying to print (not the leaf node values but the path to reach them)

c:\> perl ListLeafs.pl config.xml

{RootNode}->{ChildNode1}->{LeafNode1}
{RootNode}->{ChildNode1}->{LeafNode2}
{RootNode}->{ChildNode1}->{LeafNode3}
{RootNode}->{ChildNode2}->{LeafNode1}
{RootNode}->{ChildNode2}->{LeafNode2}
{RootNode}->{ChildNode2}->{LeafNode3}
Jul 23 '06 #1
0 2102

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2963
by: mr_burns | last post by:
Hi there, Is it possible to use PHP to change the values of XML nodes in an XML file witout having to extract all the node values, change the variable I want, use PHP to generate the node...
8
6479
by: Dan | last post by:
Using XML::Simple in perl is extreemly slow to parse big XML files (can be up to 250M, taking ~1h). How can I increase my performance / reduce my memory usage? Is SAX the way forward?
1
3415
by: Miguel Manso | last post by:
Hi there, I'm a Perl programmer trying to get into Python. I've been reading some documentation and I've choosed Python has being the "next step" to give. Can you point me out to Python...
1
3883
by: Sasha | last post by:
How can I swap two xml nodes that belong to the same parent? Examples would be great! Thank you, Sasha
1
6695
by: XmlAdoNewbie | last post by:
Hi All, I am just wondering if there is a way to compare 2 XML nodes to see if the data between them is the same? The structure of the XML nodes are exactly the same I just want to know if the...
2
2601
by: Susan | last post by:
Does anyone know the notation of how to select XML nodes based on an attribute. I know that it will be something like: root.SelectNodes ("descendant::key....") Sample xml is <indexdata> <key...
3
5963
by: Manish | last post by:
Hi m not able to convert the node values of a XML file to Hashtable Actaully i need to traverse the XML Nodes again and again and want to pick values on filters what i want is to stroe the...
0
1396
by: JohnLucas | last post by:
Hi all, I have just started working with the XML::Simple module to parse an XML file. I'm trying to pull some values from the file that I need in another program. The problem is that the XML...
4
3263
by: Steven M. O'Neill | last post by:
I have an xml structure like this: <Meta name="fieldAttributes"> <MetaString name="name">SUB_PHONE</MetaString> <MetaString name="value">999999999</MetaString> </Meta> <Meta...
0
7216
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7367
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
5028
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4699
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1528
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
407
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.