When parsing a XML doc, XML Parser uses this declaration info.
- "version" stands for a XML standard version which must be included in XML doc.
(maybe, a possible version is 1.0 or 1.1.) - "encoding" stands for a encoding name such as UTF-8, EUC-KR, and UTF-16.
- "standalone" stands for whether to use external DTD or Entity.
If XML doc has an internal DTD, a standalone's value is "yes".
If XML doc is linked to an external DTD or any Entity, a standalone's value is "no".
If "standalone" is dropped, automatically "standalone" is set "no"
In most cases, we use version="1.0" although there is version 1.1.
In Korean, version은 xml 문서를 나타내는 방식을 지정하는 거고, encoding은 사용된 언어, standalone은 추가 DTD 문서의 여부를 의미하는 것.
References
1. https://xmlwriter.net/xml_guide/xml_declaration.shtml
2. http://www.cafeconleche.org/books/effectivexml/chapters/03.html
3. http://yish-foss.blogspot.kr/2012/04/xml-10.html
3. http://yish-foss.blogspot.kr/2012/04/xml-10.html
댓글 없음:
댓글 쓰기