[Gambas-user] crash with gb.xml.html
Adrien Prokopowicz
adrien.prokopowicz at ...626...
Sat Sep 15 23:40:15 CEST 2012
I finally found out what was wrong.
Actually you are trying to load a partial HTML document as it was a
full one (With doctype, root element and so on ...). Since the last
revision (rev. #5169) it correctly raises an error instead of
crashing.
If you want to get all the nodes that are in your file (that is not a
full document), you should use the XmlElement.FromText() method
instead : http://gambasdoc.org/help/comp/gb.xml/xmlelement/fromtext?v3
And a little tip for you : at the bottom of your file you have a
script element directly containing Javascript :
<script type="text/javascript">
//Some stuff here ...
</script>
You should put it that way :
<script type="text/javascript">
//<![CDATA[
//Your stuff here ...
//]]>
</script>
So that you won't be annoyed by parsing/validation errors if you use
some forbidden HTML characters. :-) (like the <, > or & operators)
Regards,
Adrien.
More information about the User
mailing list