I need help reading and modifying this XMLfile ... I need to modify the resource element and convert it to UPPER case i.e.
<file href="scos/SCOFunctions.js"/>
.. to ...
.... <file href="scos/scoFunctions.js"/>
I tried reading it into a dataset but all I got was this
manifest_Id identifier version
0 SingleLocalSCO 1.2
I guess because of the hierachchical nature, I am missing the <organizations> and <resources> related table elements ..
Also I am not sure if I am including the schema for the XMLFile in reading it ...
I am not sure how to reference the schema when the schema is in a different file (say sch_rootv1p1p2.xsd )...
this is how I read it into the dataset
dsMyAuthors.ReadXml(filePath, Data.XmlReadMode.ReadSchema) ...
Any help on how to go about it pelase!
<?xml version="1.0" standalone="no"?>
<manifest identifier="SingleLocalSCO" version="1.2" xmlns:adlcp=" xmlns=" xmlns:xsi=" xmlns:imsmd=" xsi:schemaLocation=" imscp_rootv1p1p2.xsd imsmd_rootv1p2p1.xsd adlcp_rootv1p2.xsd">
<organizations default="TOC1">
<organization identifier="TOC1">
<title>Smart Services</title>
<item identifier="ITEM1" identifierref="RESOURCE1">
<title>Smart Services Video</title>
</item>
</organization>
</organizations>
<resources>
<resource identifier="RESOURCE1" adlcp:scormtype="sco" type="webcontent" href="scos/v_launch.html?fn=503sv&puwc=off">
<file href="scos/v_launch.html"/>
<file href="scos/503sv_av20.flv"/>
<file href="scos/503sv_av225.flv"/>
<file href="scos/503sv.txt"/>
<file href="scos/fmd.swf"/>
<file href="scos/SCOFunctions.js"/>
<file href="scos/cyberimage/f503v.jpg"/>
</resource>
</resources>
</manifest>
<file href="scos/SCOFunctions.js"/>
.. to ...
.... <file href="scos/scoFunctions.js"/>
I tried reading it into a dataset but all I got was this
manifest_Id identifier version
0 SingleLocalSCO 1.2
I guess because of the hierachchical nature, I am missing the <organizations> and <resources> related table elements ..
Also I am not sure if I am including the schema for the XMLFile in reading it ...
I am not sure how to reference the schema when the schema is in a different file (say sch_rootv1p1p2.xsd )...
this is how I read it into the dataset
dsMyAuthors.ReadXml(filePath, Data.XmlReadMode.ReadSchema) ...
Any help on how to go about it pelase!
<?xml version="1.0" standalone="no"?>
<manifest identifier="SingleLocalSCO" version="1.2" xmlns:adlcp=" xmlns=" xmlns:xsi=" xmlns:imsmd=" xsi:schemaLocation=" imscp_rootv1p1p2.xsd imsmd_rootv1p2p1.xsd adlcp_rootv1p2.xsd">
<organizations default="TOC1">
<organization identifier="TOC1">
<title>Smart Services</title>
<item identifier="ITEM1" identifierref="RESOURCE1">
<title>Smart Services Video</title>
</item>
</organization>
</organizations>
<resources>
<resource identifier="RESOURCE1" adlcp:scormtype="sco" type="webcontent" href="scos/v_launch.html?fn=503sv&puwc=off">
<file href="scos/v_launch.html"/>
<file href="scos/503sv_av20.flv"/>
<file href="scos/503sv_av225.flv"/>
<file href="scos/503sv.txt"/>
<file href="scos/fmd.swf"/>
<file href="scos/SCOFunctions.js"/>
<file href="scos/cyberimage/f503v.jpg"/>
</resource>
</resources>
</manifest>