Incorporated strict-then-sloppy XML parsing into the patch process
This commit is contained in:
parent
459474323c
commit
3572850586
6 changed files with 213 additions and 25 deletions
|
@ -298,6 +298,8 @@ public class ModXMLSandbox extends JDialog implements ActionListener {
|
|||
|
||||
|
||||
private void open() {
|
||||
messageArea.setText( "" );
|
||||
|
||||
FTLDat.FTLPack dataP = null;
|
||||
InputStream is = null;
|
||||
try {
|
||||
|
@ -345,6 +347,8 @@ public class ModXMLSandbox extends JDialog implements ActionListener {
|
|||
private void patch() {
|
||||
if ( mainDoc == null ) return;
|
||||
|
||||
messageArea.setText( "" );
|
||||
|
||||
try {
|
||||
String appendText = appendArea.getText();
|
||||
appendText = appendText.replaceFirst( "<[?]xml [^>]*?[?]>", "" );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue