Questions tagged [non-well-formed]

A non-well-formed expression is one that is inconsistent with a known set of rules for syntax, structure, or any of various constraints of a formal system.

Overview

A non-well-formed expression is one that is inconsistent with a known set of rules for syntax, structure, or any of various constraints of a formal system.

See also

21 questions
7
votes
6 answers

Java saying XML Document Not Well Formed

Java's XML parser seems to be thinking that my XML document is not well formed following the root element. But I've validated it with several tools and they all disagree. It's probably an error in my code rather than in the document itself. I'd…
Pyroclastic
  • 81
  • 1
  • 1
  • 3
5
votes
3 answers

Python ElementTree generate not well formed XML file with special character '\x0b'

I used ElementTree to generate xml with special character of '\x0b', then use minidom to parse it. It will throw not well-formed error. import xml.etree.ElementTree as ET from xml.dom import minidom root = ET.Element('root') root.text='\x0b' xml =…
Jianwu Chen
  • 5,336
  • 3
  • 30
  • 35
4
votes
2 answers

Finding a node (or close to it) using XPath in non well-formed HTML

I'm using XPath to locate a node (or something close to it) in a template that has non-well-formed HTML about 10 levels deep. (No I didn't write this HTML...but I've been tasked to dig through it.) I seem to be able to retrieve an XPath to the…
leeand00
  • 25,510
  • 39
  • 140
  • 297
3
votes
2 answers

jQuery ajax request causes 'not well-formed' error in Firefox

When trying to dynamically load a Javascript file using jQuery I keep getting a "not well-formed" error message. I have found people with similar problems on here but have yet to see a resolution provided. My main script uses: $.ajax({ url:…
OrangeFrog
  • 285
  • 4
  • 12
2
votes
3 answers

ASP.NET link button Server tag is not well formed

Im trying to add a button in my grid view that will redirect me to another page and pass the id of the movie. This is my code
Chris Nickson
  • 105
  • 2
  • 3
  • 8
2
votes
3 answers

python xml error

I'm new to xml. I'm trying to parse an xml file to extract data from, but it shows the error below message when I call doc=minidom.parse('D:\\CONFIGRATION.xml') ... xml.parsers.expat.ExpatError:not well-formed (invalid token): line 474, column…
Moayyad Yaghi
  • 3,622
  • 13
  • 51
  • 67
1
vote
2 answers

can't read xml file on android

I am trying to open and read a xml file as a local resource with jdom. I can open the file but then I got an error saying that the xml file is not well-formed. Here is the code : Uri path =…
user1086225
  • 45
  • 1
  • 4
1
vote
3 answers

Replacing characters in a non well-formed XML body

In a (Java) code that I'm working on, I sometimes deal with a non well-formed XML (represented as a Java String), such as: bar & baz < quux Since this XML will eventually need to be unmarshalled (using JAXB),…
ryanprayogo
  • 11,587
  • 11
  • 51
  • 66
0
votes
0 answers

What is wrong with this portion of my SSM document?

Getting this error when creating SSM document: invalidDocumentContent: YAML not well-formed. This is the line below that the error references "$version = '6.18'", I get the same error on other lines in the new block, so if I can figure out this…
0
votes
1 answer

How can i fix this checkstyle xml error about being well-formed?

I am trying to run a gradle build for apacheofbiz, but the checkstyle Main task keeps failing. The error being produced now is: lineNumber: 41; columnNumber: 12; The markup in the document following the root element must be well-formed. I've had a…
fawn
  • 23
  • 4
0
votes
1 answer

The element type X must be terminated by the matching end-tag

I am making a mod for dungeons of dredmor. When I run the code through a syntax checker or a formatter I get this error: Unable to parse any XML input. Error on line 6: The element type "skillDB" must be terminated by the matching end-tag…
0
votes
2 answers

Processing badly formatted XML in .NET3.5

Given a third party system that streams XML to me via TCP. The TOTAL transmitted XML content (not one message of the stream, but concatenated messages) looks like this : ...
user256890
  • 3,396
  • 5
  • 28
  • 45
0
votes
1 answer

HTML Well-formedness parser

Heyy guys, I need to determine if a given HTML Document is well formed or not. I just need a simple implementation using only Java core API classes i.e. no third party stuff like JTIDY or something. Actually, what is exactly needed is an algorithm…
sacretruth
  • 780
  • 2
  • 18
  • 34
0
votes
3 answers

How can I determine if a HTML document is well formed or not in JAVA?

Heyy guys, I need to determine if a given HTML Document is well formed or not. I just need a simple implementation using only Java core API classes i.e. no third party stuff like JTIDY or something. Thanks. Actually, what is exactly needed is an…
sacretruth
  • 780
  • 2
  • 18
  • 34
0
votes
1 answer

ViewFlipper in the relative layout along with another relative layout child. Non well formed markup

I get "The markup in the document following the root element must be well formed" error near ViewFlipper tag. What is the reason of that error?
Nazerke
  • 2,098
  • 7
  • 37
  • 57
1
2