PDA

View Full Version : حرفه ای: خواندن خصوصیات متفاوت دو تگ در XML



barghian
جمعه 23 مرداد 1394, 23:32 عصر
با سلام وخسته نباشید یه فایل هست که میخوام بعنوان منو ازش استفاده کنم ولی text منو را از تگ <title> استفاده میشه و لینک اون از خصوصیت تگ <resource> یعنی href اون میخونه فایل رو میزارم ممنون میشم راهنمایی کنید راستی قالب xml همینه نمی تونم تغییر بدم یه جورای استاندارد است.
<?xml version="1.0" encoding="UTF-8"?><!--This is a Reload version 2.5.5 SCORM 2004 Content Package document-->
<!--Spawned from the Reload Content Package Generator - http://www.reload.ac.uk-->
<manifest xmlns="http://www.imsglobal.org/xsd/imscp_v1p1" xmlns:imsmd="http://ltsc.ieee.org/xsd/LOM" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:adlcp="http://www.adlnet.org/xsd/adlcp_v1p3" xmlns:imsss="http://www.imsglobal.org/xsd/imsss" xmlns:adlseq="http://www.adlnet.org/xsd/adlseq_v1p3" xmlns:adlnav="http://www.adlnet.org/xsd/adlnav_v1p3" identifier="MANIFEST-BB58C220925CCC777BB875E5B3825862" xsi:schemaLocation="http://www.imsglobal.org/xsd/imscp_v1p1 imscp_v1p1.xsd http://ltsc.ieee.org/xsd/LOM lom.xsd http://www.adlnet.org/xsd/adlcp_v1p3 adlcp_v1p3.xsd http://www.imsglobal.org/xsd/imsss imsss_v1p0.xsd http://www.adlnet.org/xsd/adlseq_v1p3 adlseq_v1p3.xsd http://www.adlnet.org/xsd/adlnav_v1p3 adlnav_v1p3.xsd">
<metadata>
<schema>ADL SCORM</schema>
<schemaversion>2004 3rd Edition</schemaversion>
</metadata>
<organizations default="ORG-F20DCC50291320CB2D271ADBA3CF7128">
<organization identifier="ORG-F20DCC50291320CB2D271ADBA3CF7128" structure="hierarchical">
<title>Organization</title>
<item identifier="ITEM-152C440081588AE5F5E369D0A5C2D02D" isvisible="true">
<title>راهنمای سیمیای 5</title>
<item identifier="ITEM-00803BA96283F0C5FF4B5860FA06F4F8" isvisible="true">
<title>ورود به سیستم</title>
<item identifier="ITEM-6990303428DCCE5F12997AEECFA58C41" identifierref="RES-6A235A70ADEB8FE7D06301F7B23A87DF" isvisible="true">
<title>صفحه ورود</title>
</item>
<item identifier="ITEM-DBAC28449CB4D1FF7D1476F80AE479D2" identifierref="RES-A6AF273A4D07DF6BCAF1F261FB221C60" isvisible="true">
<title>شکل ظاهری برنامه</title>
</item>
<item identifier="ITEM-5330F142772AE925A8E7AD89B52992CD" identifierref="RES-81CA5E1F905037E143955EF13CDF830D" isvisible="true">
<title>کلید های میان بر</title>
</item>
</item>
</item>
</organization>
</organizations>
<resources>
<resource identifier="RES-6A235A70ADEB8FE7D06301F7B23A87DF" adlcp:scormType="asset" type="webcontent" href="Res/sub_1/image_animation/001.swf">
<file href="Res/sub_1/image_animation/001.swf" />
</resource>
<resource identifier="RES-A6AF273A4D07DF6BCAF1F261FB221C60" adlcp:scormType="asset" type="webcontent" href="Res/sub_2/image_animation/001.swf">
<file href="Res/sub_2/image_animation/001.swf" />
</resource>
<resource identifier="RES-81CA5E1F905037E143955EF13CDF830D" adlcp:scormType="asset" type="webcontent" href="Res/sub_3/image_animation/001.swf">
<file href="Res/sub_3/image_animation/001.swf" />
</resource>
</resources>
</manifest>

barghian
شنبه 24 مرداد 1394, 11:28 صبح
کسی جوابی نداره ؟