可能性の重複: If you're not supposed to use Regular Expressions to parse HTML, then how are HTML parsers written? 私の質問は簡単です:実際に文字列(XML、HTML、またはその他)からDOMを解析どのように現在のDOMパーサ? 私はyou shouldn't parse html with Reg
に私はCを取得しようとしている次のコードを持っている:のCreationDateノード: value = '<?xml version="1.0" encoding="UTF-8"?><content><c:CreationDate>2010-09-04T05:04:53Z</c:CreationDate></content>';
xml = (new DOMParser()).parseFr