<

Hi Khen, Yes the xml is a bit non-standard because it's a proprietary schema. I've already scrubbed it down to this more standard format, but I can scrub it further if the current format is still too alien. I'll post a shortened version of the whole (I just took out a large number of ncp_file elements for easier reading).

<?xml version="1.0"?> <softpkg NAME="CutePDFWriter" VERSION="0" > <implementation> <processor VALUE="ALL" /> <os VALUE="WinXP" /> <disksize VALUE="0" /> <ncp_sysdisksize VALUE="0" /> <ncp_environment source="user" > </ncp_environment> <ncp_environment source="system" > </ncp_environment> <ncp_directory op="ADD" ipol="0" iprs="0" uppol="0" upprs="0" upol=" +0" uprs="0" vpol="1" vnipol="1" rpol="1" user_specific="0" ntperm="0" + name="$dir1" flags="" lm="129232888600305382" cr="129232888600305382 +" > <ncp_directory op="ADD" ipol="0" iprs="0" uppol="0" upprs="0" upol +="0" uprs="0" vpol="1" vnipol="1" rpol="1" user_specific="0" ntperm=" +0" name="CutePDFWriter" flags="" lm="129232886309260678" cr="12923271 +1066448490" > <ncp_file op="ADD" ipol="0" iprs="0" uppol="0" upprs="0" upol="0 +" uprs="0" vpol="1" vnipol="1" rpol="1" name="cpwmon2k.dll" length="8 +7552" md5="27A8QATED9I2Ox8F65OGEPPDCIV" flags="a" lm="129018983800000 +000" cr="129232711245774126" gac_register_op="SAME" register="false" +/> <ncp_directory op="ADD" ipol="0" iprs="0" uppol="0" upprs="0" up +ol="0" uprs="0" vpol="1" vnipol="1" rpol="1" user_specific="0" ntperm +="0" name="converter" flags="" lm="129232881029776793" cr="1292328706 +12045954" > <ncp_directory op="ADD" ipol="0" iprs="0" uppol="0" upprs="0" +upol="0" uprs="0" vpol="1" vnipol="1" rpol="1" user_specific="0" ntpe +rm="0" name="GPLGS" flags="" lm="129232870625951047" cr="129232870612 +202191" > <ncp_file op="ADD" ipol="0" iprs="0" uppol="0" upprs="0" upo +l="0" uprs="0" vpol="1" vnipol="1" rpol="1" name="gsdll32.dll" length +="2768896" md5="5F7UGLCH9K3GKxBNML1LM0G3RNL" flags="a" lm="1274070452 +20000000" cr="129232870614545746" gac_register_op="SAME" register="fa +lse" /> <ncp_file op="ADD" ipol="0" iprs="0" uppol="0" upprs="0" upo +l="0" uprs="0" vpol="1" vnipol="1" rpol="1" name="a010013l.pfb" lengt +h="69958" md5="7EDJ7V7QHMBQ1x6HLC54FG0OP6T" flags="a" lm="12685496594 +0000000" cr="129232870612202191" gac_register_op="SAME" /> <ncp_file op="ADD" ipol="0" iprs="0" uppol="0" upprs="0" upol= +"0" uprs="0" vpol="1" vnipol="1" rpol="1" name="GSSetup.exe" length=" +122880" md5="E61K8P45E8D81x3T3E47C8QIP0U" flags="a" lm="1277517870000 +00000" cr="129232870612045954" gac_register_op="SAME" /> </ncp_directory> <ncp_directory op="ADD" ipol="0" iprs="0" uppol="0" upprs="0" up +ol="0" uprs="0" vpol="1" vnipol="1" rpol="1" user_specific="0" ntperm +="0" name="Driver" flags="" lm="129232870627357180" cr="1292328706261 +07284" > <ncp_file op="ADD" ipol="0" iprs="0" uppol="0" upprs="0" upol= +"0" uprs="0" vpol="1" vnipol="1" rpol="1" name="ICONLIB.DLL" length=" +118144" md5="D6VRKCQ4IFOSTxCLRJ9GHN6KR6J" flags="a" lm="1260497160000 +00000" cr="129232870626263521" v="4.90.0.3000" gac_register_op="SAME" + register="false" /> <ncp_file op="ADD" ipol="0" iprs="0" uppol="0" upprs="0" upol= +"0" uprs="0" vpol="1" vnipol="1" rpol="1" name="PS5UI.DLL" length="72 +8576" md5="9EJQCU5IT5H58xBCG8GIT8PQEBS" flags="a" lm="128069307720000 +000" cr="129232870626419758" v="0.3.6000.16386" gac_register_op="SAME +" register="false" /> <ncp_directory op="ADD" ipol="0" iprs="0" uppol="0" upprs="0" +upol="0" uprs="0" vpol="1" vnipol="1" rpol="1" user_specific="0" ntpe +rm="0" name="x64" flags="" lm="129232870627825891" cr="12923287062735 +7180" > <ncp_file op="ADD" ipol="0" iprs="0" uppol="0" upprs="0" upo +l="0" uprs="0" vpol="1" vnipol="1" rpol="1" name="PS5UI.DLL" length=" +850432" md5="3REVK8VG65NGUx88P61CUHUN603" flags="a" lm="1280693632000 +00000" cr="129232870627357180" v="0.3.6000.16386" gac_register_op="SA +ME" register="false" /> <ncp_file op="ADD" ipol="0" iprs="0" uppol="0" upprs="0" upo +l="0" uprs="0" vpol="1" vnipol="1" rpol="1" name="PSCRIPT5.DLL" lengt +h="628736" md5="BIAA93SK0Q9VRxBT7BCG7U4L2F0" flags="a" lm="1280693632 +20000000" cr="129232870627825891" v="0.3.6000.16386" gac_register_op= +"SAME" register="false" /> </ncp_directory> <ncp_file op="ADD" ipol="0" iprs="0" uppol="0" upprs="0" upol= +"0" uprs="0" vpol="1" vnipol="1" rpol="1" name="CUTEPDFW.PPD" length= +"31736" md5="1QBHH0SQPIJ2Cx1REJOP1QAUJJK" flags="a" lm="1286320759800 +00000" cr="129232870626107284" gac_register_op="SAME" /> <ncp_file op="ADD" ipol="0" iprs="0" uppol="0" upprs="0" upol= +"0" uprs="0" vpol="1" vnipol="1" rpol="1" name="Cutepdfw.spd" length= +"16697" md5="9M25IA0L5NFKNx60S9M36K0FA6U" flags="a" lm="1275208863200 +00000" cr="129232870626107284" gac_register_op="SAME" /> </ncp_directory> <ncp_file op="ADD" ipol="0" iprs="0" uppol="0" upprs="0" upol="0 +" uprs="0" vpol="1" vnipol="1" rpol="1" name="CPWSave.exe" length="23 +9104" md5="5CD14FVPVPV2TxFDKG6C6OND5U1" flags="a" lm="129018985060000 +000" cr="129232711229841012" v="2.7.3.1" gac_register_op="SAME" /> <ncp_file op="ADD" ipol="0" iprs="0" uppol="0" upprs="0" upol="0 +" uprs="0" vpol="1" vnipol="1" rpol="1" name="install.bat" length="70 +0" md5="DKARE24NS4V4AxCM8QQ89CSDFDI" flags="a" lm="129232882384787064 +" cr="129232753155202156" gac_register_op="SAME" /> </ncp_directory> </ncp_directory> </implementation> </softpkg>
Thanks!

In reply to Re^2: Having problems accessing individual attributes in xml by Gemenon
in thread Having problems accessing individual attributes in xml by Gemenon

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.