
XMLReader::setParserProperty의 "http://xml.org/sax/features/namespaces" 파라미터의 기본값은 true입니다.
이 값을 false로 설정하면 XML 문서의 네임스페이스를 무시할 수 있습니다.
XMLReader::setParserProperty를 사용하여 XML 문서의 네임스페이스를 무시하는 방법은 다음과 같습니다.
#hostingforum.kr
php
$xmlReader = new XMLReader();
$xmlReader->setParserProperty('http://xml.org/sax/features/namespaces', false);
$xmlReader->open('example.xml');
이러한 설정을 통해 XML 문서의 네임스페이스를 무시할 수 있습니다.
2025-04-06 22:30