• Post Reply Bookmark Topic Watch Topic
  • New Topic

Failed to import xml page

 
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: 65664
129
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: 65664
129
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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!