XML 스키마에 관한 내용 질문 드립니다.
글쓴이: tsoc / 작성시간: 월, 2011/09/05 - 9:53오후
웹 서비스에 대한 공부를 하고 있습니다.
xml 및 스키마에 대해 책을 보고 공부를 하였는데요;
[ns:request xmlns:ns="네임스페이스"
xmlns:ns1="네임스페이스1"]
[ns1:nsrequest]
[parameter]
[parameter1]
[/ns1:nsrequest]
[/ns:request]
대략 이러한 형태의 xml이 있다고 하였을때, parameter와 parameter1은 어떤 네임스페이스 속하게 되는 것인가요?
부모 엘리멘트만 접두어를 가지고, 자식은 접두어를 가지지 않는데요; 이러한 형태를 책에서도 본 적이 없는데, 어떠한 네임스페이스도 가지지 않게 되는지요?
또한 저렇게 사용하는 것이 어떠한 의미를 가지는지 알고 싶습니다.
Forums:
http://www.rpbourret.com/xml/
http://www.rpbourret.com/xml/NamespacesFAQ.htm#scope_5
6.5) What happens if no XML namespace declaration is in scope?
If no XML namespace declaration is in scope, then any prefixed element type or attribute names result in namespace errors. For example, in the following, the names foo:A and foo:B result in namespace errors.
<?xml version="1.0" ?>
In the absence of an XML namespace declaration, unprefixed element type and attribute names do not belong to any XML namespace. For example, in the following, the names A and B are not in any XML namespace. For more information, see question 3.6.
<?xml version="1.0" ?>
네임스페이스에 속하지 않게 됩니다.
재벌 2세가 재벌이 될 확률과
금메달리스트 2세가 금메달을 딸 확률이 비슷해지도록
자유오픈소스 대안화폐를 씁시다.
아이디의 아이디어 무한도전
http://blog.aaidee.com
귀태닷컴
http://www.gwitae.com
댓글 달기