0
나는이 xml 파일이 - payload.xml추출물 자식 XML을 사용하여 JQuery와
<Remoting><Response>
<Controller id="c">
<Messages/>
<StructData name="Root">
<F name="@ErrorOccured"/>
<F name="@TransitionErrorOccurred"/>
<List name="DataList" aspect="Delete"/>
<List name="DataList" aspect="New">
<Item name="001">
<F name="CreationDateTime" >2012/04/26</F>
<F name="ProductDescription" />
</Item>
<Item name="01F">
<F name="CreationDateTime" >2012/08/09</F>
<F name="ProductDescription" >Smartphone 16GB</F>
</Item>
<Header name="@tableSize">316 </Header>
</List>
</StructData>
<Events>
<Event event="$Core" operation="$AddRow" path="/Root/DataList"/>
</Events>
</Controller>
</Response></Remoting>
을 그리고 나는 그것에서이 XML을 추출해야 - 내가 같이 일을하려고하고 무엇
<Item name="001">
<F name="CreationDateTime" >2012/04/26</F>
<F name="ProductDescription" />
</Item>
<Item name="01F">
<F name="CreationDateTime" >2012/08/09</F>
<F name="ProductDescription" >Smartphone 16GB</F>
</Item>
을 내가 OBJ 내부의 XML을 참조하지 말아 디버거 내부 확인되면 첫 번째 단계는
jQuery.get("payload.xml", function(result){
obj = $(result).find('Response').find('Controller').find('StructData');})
입니다! 감사합니다.
을 시도! – Tintin
나를 위해 일한다. http://jsfiddle.net/JuuPj/ – Anoop
@ 틴틴 물론 그렇다. 마지막 질문을 제외한 모든 질문에'xmlns = "http : // test/to"가 있습니다. – Tomalak