< and > are illegal characters in xml, this has nothing to do with B4A. You should escape it ( < as < and > as > ).
This question has been asked before, including by myself. < must be replaced by < as stated. Otherwise the compiler will mistake it, probably for a nested element.
This is not correct. < and > are NOT legal in xml and must be escaped. And there's nothing odd. B4A use the standard .NET classes to interpret the xml data (imho) and therefore the xml must be well formattet. Why should Erel reinvent the wheel?< and > are legal characters in XML.... It's a little odd that the parser thinks that you've started to code XML within B4A - seems like a bug to me. Will see what Erel says....
This is not correct. < and > are NOT legal in xml and must be escaped. And there's nothing odd. B4A use the standard .NET classes to interpret the xml data (imho) and therefore the xml must be well formattet. Why should Erel reinvent the wheel?
< and > are illegal characters in xml, this has nothing to do with B4A. You should escape it ( < as < and > as > ).
Be sure using < and >I have tried < and >, both aren't working for me.
Be sure using < and >
< and > is wrong syntax.
I have no idea. But think about what problem for a single character (free app!!!).
Just one thing: if it were a matter of "legality" of those characters, the problem should be with both of them, with one of them instead the problem does not occur (">").
Thank you for reply MaFu. Now I understad a bit more!Normally both are wrong. No idea why > works. But this have nothing to do with B4A. This escaping is same syntax as in html. Use always the escaped version and you're on the right side.
'Example1 IIf(3 > 4, "Correct", "Wrong") will Return "Wrong"
Sub IIf(QuestionTrue As Boolean, TruePart As Object, FalsePart As Object) As Object
If QuestionTrue Then Return TruePart
Return FalsePart
End Sub
'Example1 IIf(3 < 4, "Correct", "Wrong") will Return "Correct"
Sub IIf(QuestionTrue As Boolean, TruePart As Object, FalsePart As Object) As Object
If QuestionTrue Then Return TruePart
Return FalsePart
End Sub
'Example1 IIf(3 > 4, "Correct", "Wrong") will Return "Correct"
'Example2 IIf(3 < 4, "Correct", "Wrong") will Return 4
Sub IIf(QuestionTrue As Boolean, TruePart As Object, FalsePart As Object) As Object
If QuestionTrue Then Return TruePart
Return FalsePart
End Sub
But how should this work?But, once again, as I said in the post #1, even get it working in the "Baloon",
upon the subroutine, still not user-friendly.
I think B4A, can do, easily, the translation. But this is just a wish
But how should this work?
The .net framework loads and parses the xml. B4A sees only the already parsed result, on this time it's to late. Only the tool which creates the xml can do the correction.
Normally both are wrong. No idea why > works. But this have nothing to do with B4A. This escaping is same syntax as in html. Use always the escaped version and you're on the right side.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?