나는 지금 문제가 있음에도 불구하고 내 대답을 보았지만 내 것은 중첩 된 문제입니다.중첩 된 xml 요소의 네임 스페이스
나는 XML은 다음과 같이보고했다 :
지금>
<em>
<type xmlns="http://www.sitcom-project.org/sitcom" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<model>
<implemented_with>comoco</implemented_with>
<implemented_in>perl</implemented_in>
<cash_flow>casual</cash_flow>
<interaction>conventional</interaction>
</model>
</type>
</em>
, 어떻게 implemented_with 노드의 요소에 액세스합니까?
ofc 나는 다음과 같이 xmlList에 액세스 할 수 있습니다. namespace ns = www.sitcom-project.org/sitcom; type.ns :: model; 하지만 이제 어떻게 모델 xmlList의 구현 된 노드에 액세스합니까? 나는 type.ns :: model.implemented_with를 시도했지만 작동하지 않았습니다. 누구 한테 아이디어있어? 감사합니다.
ActionScript에는 'default xml namespace'가있는 catch가 있습니다. 작업을 마쳤 으면 빈 네임 스페이스로 재설정해야합니다. 그렇지 않으면 런타임 오류가 발생할 수 있습니다. – alxx
내 대답을 편집하여 내 의견을 반영합니다. – Nicholas