Skip to content
Permalink
Browse files

relaxed mode improvements

  • Loading branch information
haustein
haustein committed Nov 29, 2006
1 parent 4b51d6a commit 1bb0821f0c9d66ef6e98cd656fb6d0dfd01ce8ba
Showing with 11 additions and 5 deletions.
  1. +1 −1 build.xml
  2. +1 −0 compress.xml
  3. +9 −4 src/org/kxml2/io/KXmlParser.java
@@ -3,7 +3,7 @@

<project name="kxml2" default="build" basedir=".">

<property name="version" value="2.3.0" />
<property name="version" value="2.3.1" />


<target name="javadoc">
@@ -0,0 +1 @@
j
@@ -65,13 +65,14 @@

// txtbuffer

/** Target buffer for storing incoming text (including aggregated resolved entities) */
private char[] txtBuf = new char[128];
/** Write position */
private int txtPos;

// Event-related

private int type;
//private String text;
private boolean isWhitespace;
private String namespace;
private String prefix;
@@ -657,16 +658,20 @@ private final void parseStartTag(boolean xmldecl)
skip();

if (peek(0) != '=') {
error("Attr.value missing f. "+attrName);
attributes[i] = "1";
if(!relaxed){
error("Attr.value missing f. "+attrName);
}
attributes[i] = attrName;
}
else {
read('=');
skip();
int delimiter = peek(0);

if (delimiter != '\'' && delimiter != '"') {
error("attr value delimiter missing!");
if(!relaxed){
error("attr value delimiter missing!");
}
delimiter = ' ';
}
else

0 comments on commit 1bb0821

Please sign in to comment.
You can’t perform that action at this time.