Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Parse tree like data like XML by Perl?

Status
Not open for further replies.

davyzhu

Advanced Member level 1
Joined
May 23, 2004
Messages
494
Helped
5
Reputation
10
Reaction score
2
Trophy points
1,298
Location
oriental
Activity points
4,436
Hi all,

I used to embed data in program use something like "case" or
"if..else". But my friend advice me to separate program and data. So I
want to use a tree-like data file like XML.

The question is:
1. Is there any better or easier standardized tree-like data structure
than XML?
2. If XML is better, I am new to it, what shall I learn to use it by
Perl?

Please recommend some tool or reading material about the topic, thanks!

Best regards,
Davy
 

davyzhu said:
Hi all,

I used to embed data in program use something like "case" or
"if..else". But my friend advice me to separate program and data. So I
want to use a tree-like data file like XML.

The question is:
1. Is there any better or easier standardized tree-like data structure
than XML?
2. If XML is better, I am new to it, what shall I learn to use it by
Perl?

Please recommend some tool or reading material about the topic, thanks!

Best regards,
Davy

first see this page for xml alternatives(if any in your case)
http://www.catb.org/~esr/writings/taoup/html/ch05s02.html

many modules for Perl XML handling see

http://perl-xml.sourceforge.net/faq/
 

    davyzhu

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top