• Post Reply Bookmark Topic Watch Topic
  • New Topic

Failed to import xml page  RSS feed

 
Ronwaldo Cruz
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to use c:import to import an xml page. The page is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<test>
<case> test to validate &#19; </case>
</test>

I'm getting a blank page inside my JSP. The error says that the XML refers to an invalid character reference. This xml renders successfully in IE so this seems like a valid XML - it doesn't work in FireFox though.

Does anybody have an idea? Thank you.
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

your mozilla browser not parse & character. So just remove & and it will working fine.. !!

untitled.JPG
[Thumbnail for untitled.JPG]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66260
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ummm, well...

"Hey, my code has compiler errors."

"No problem, just remove the failing lines."


 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66260
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Technically, it's not valid XML unless the entity is defined. But that's beyond the scope of JSP.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!