Guest User

Untitled

a guest
Feb 18th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. <HTML>
  2. <HEAD>
  3. <TITLE></TITLE>
  4. </HEAD>
  5. <BODY>
  6. <U>【書類名】       手続補正書</U><BR>
  7. <SUP>【提出日】</SUP>       平成20年1月21日<BR>
  8. <SUB>【あて先】</SUB>       特許庁長官 殿<BR>
  9. <FONT SIZE="6">【事件の表示】</FONT><BR>
  10. <FONT SIZE="5">  【<U>出願番号</U>】    <?pi 処理命令 ?><!--コメント-->特願<SUP>2017</SUP>-<SUB>506720</SUB></FONT><BR>
  11. 【補正をする者】<BR>
  12. ...
  13. </BODY>
  14. </HTML>
  15.  
  16. Dim streamReader As StreamReader = New StreamReader("D:My_DocumentsXML2019JPO-HTMLtestdataF58737H1-mod.html", Encoding.GetEncoding("Shift_JIS"))
  17. Dim SgmlReader As Sgml.SgmlReader = New Sgml.SgmlReader()
  18. SgmlReader.DocType = "HTML"
  19. SgmlReader.WhitespaceHandling = Xml.WhitespaceHandling.All
  20. SgmlReader.CaseFolding = Sgml.CaseFolding.ToUpper
  21. SgmlReader.InputStream = streamReader
  22. Dim doc As XDocument = XDocument.Load(SgmlReader)
  23. Dim body As XElement = doc.Element("HTML").Element("BODY")
  24. Dim nodes As IEnumerable(Of XNode) = body.Nodes
Add Comment
Please, Sign In to add comment