codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Problem with XML  augustoveloso at 17:52 on Tuesday, May 02, 2006
 

Hi everyone,

I am trying to learn using XML with Perl and I ran into a problem.

My XML file goes like this:

<Menu>
<Menu id="2" title="My Title">
<item
number="1"
text=" (1) - first Option"
command="execcmd="perl ../../Scripts/Sequence_1_1.1/Clkm_CreateMCG.pl "
/>
<item
number="2"
text=" (2) - second one"
command="execcmd="perl ../../Scripts/Sequence_1_1.1/Clkm_CreateMCG.pl "
/>
<item
number="3"
text=" (3) - third"
command="execcmd="perl ../../Scripts/Sequence_1_1.1/Clkm_CreateMCG.pl "
/>
</Menu>
</Menus>

I can't find a way to read the attributes in the <Menu> tag.

The idea is to have a menu with its title and id attributes and a list of Items.
I can't find a way to read the item attributes.
Can anyone help me.

Thank you very much.

  Re: Problem with XML  S_Flex at 11:08 on Thursday, May 04, 2006
 

this is what my XML file looks like, hope it helps....

<?xml version="1.0" encoding="iso-8859-1" ?>
- <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/">
- <channel rdf:about="http://www.shakaflex.com/flex/yawpsnews.xml">
<title>Team Shaka Flex</title>
<link>http://www.shakaflex.com/cgi-bin/flex/index.cgi</link>
<description>Team Shaka Flex</description>
- <items>
- <rdf:Seq>
<rdf:li resource="http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=security;id=28" />
<rdf:li resource="http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=27" />
<rdf:li resource="http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=newgear;id=26" />
<rdf:li resource="http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=25" />
<rdf:li resource="http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=24" />
<rdf:li resource="http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=23" />
<rdf:li resource="http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=22" />
<rdf:li resource="http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=20" />
<rdf:li resource="http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=19" />
<rdf:li resource="http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=18" />
</rdf:Seq>
</items>
</channel>
- <item rdf:about="http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=security;id=28">
<title>Thank You P-L-D Security Group www.pldsoft.de!</title>
<link>http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=security;id=28</link>
</item>
- <item rdf:about="http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=27">
<title>Sorry New Members.</title>
<link>http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=27</link>
</item>
- <item rdf:about="http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=newgear;id=26">
<title>Two New Yawps Modules</title>
<link>http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=newgear;id=26</link>
</item>
- <item rdf:about="http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=25">
<title>New and Old Downloads</title>
<link>http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=25</link>
</item>
- <item rdf:about="http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=24">
<title>Locked Forums...</title>
<link>http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=24</link>
</item>
- <item rdf:about="http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=23">
<title>Beta Tester Sign Up</title>
<link>http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=23</link>
</item>
- <item rdf:about="http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=22">
<title>Now Testing Speed Update.</title>
<link>http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=22</link>
</item>
- <item rdf:about="http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=20">
<title>Guest Posting in Forums.</title>
<link>http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=20</link>
</item>
- <item rdf:about="http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=19">
<title>Dynamic Forum Now Being Tested!</title>
<link>http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=19</link>
</item>
- <item rdf:about="http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=18">
<title>Dynamic IM Now Being Tested.</title>
<link>http://www.shakaflex.com/cgi-bin/flex/topics.cgi?op=view_topic;cat=announcements;id=18</link>
</item>
</rdf:RDF>








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  IE Only comeback
•  Re: java app auto web update..
•  ` Error Code 64: Host not available ` - Error when accessing ASP Appln
•  Re: dynamic crystal report generation
•  Launch an app remotely through a website
•  Run an app in my pc from another pc
•  a:hover elements
•  Rearranging elements in a table
•  window.open giving http404 error


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007