When trying to parse incorrect XML with a character reference such as , Java's SAX Parser dies a horrible death with a fatal error such as
org.xml.sax.SAXParseException: Character reference ""
is an invalid XML character.
Is there any way around this? Will I have to clean up the XML file ...
Sample XML:
<assignments>
<assignment id="911990211" section-id="1942268885" item-count="21" sources="foo">
<options>
<value name="NumRetakes">4</value>
<value name="MultipleResultGrading">6</value>
<value name="MaxFeedbackAttempts">-1</value>
<value name="ItemTakesBeforeHint">1</value>
<value...
I have an XML file with a lot of nodes similar to the following format:
<Factsheet page="GenericOfflineFactsheet.aspx" pageTitle="MyTitle" >
<TopStrapline text="BlahBlahBlah" />
<Commentary page="Text.ascx" />
<ChartPanel page="Bar.ascx" appearanceFile="Bar.xml" />
<Strapline text="blah blah blah" />
<Funds>
<fund id="215"...
Hey guys,
I added a new layout in the project and after adding it, I am getting error, even I deleted the layout file still error keep on coming, below is the screen shot for more explanation:
Thanks
...
We have an xml node "item" with an attribute "style", which is "Header1". This style can change however. We have an attribute set named Header1 which defines how this should look in a PDF, generated through xsl:fo.
This works (the use-attribute-sets is mentioned inline, in the fo:table-cell node):
<xsl:template match="item[@type='label...
I want to migrate my calendar from exchange server to Google calendar, I fetched exchange server's XML now I have to pass that XML to google calendar's python code so that my calendar can be set, Now my question is how can i convert my exchange server's XML to Google's compatible XML?
...
Hello,
I'm trying to do soemone a favour, and it's a tad outside my comfort zone, so I'm stuck.
I want to use R to scrape this page (http://www.fifa.com/worldcup/archive/germany2006/results/matches/match=97410001/report.html ) and others, to get the goal scorers and times.
So far, this is what I've got
require(RCurl)
require(XML)
th...
I have the following XML which I am trying to query with XDocument:
<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
<EventID>589828</EventID>
<Type>3</Type>
<SubType Name="Information">0</SubType>
...
Hello,
i'm new to flex, and i've an exam on it next week. I'm following how to build an application in 1 day tutorial from adobe.
I'm stuck on how to recieve data from database.
First, i choose to use AMF to connect with data :
my PHP class to access my database doesn't work (got an error like: is zend correctly installed,include ....
Hi
I hope someone can help me.....
i am trying to build a dynamic form for a questionnaire module. Building on some previous posts I am using the process similar to that in question "http://stackoverflow.com/questions/629021/how-to-generate-a-formmxform-dynamically-in-flex" i have managed to prove out the fact of extending the XML to ...
Hello, i have this message error and i don't know where does the problem comes from:
<?php include "DBconnection.class.php";
$sql = DBConnection::getInstance();
$requete = "my resquest (which is working)";
$sql->query($requete);
$xml = '<?xml version="1.0" encoding="UTF-8"?>';
$xml .='<GamerCertified>';
while($row...
I have the following XML:
<?xml version="1.0" encoding="UTF-8"?>
<details>
...
<address1>Test&Address</address1>
...
</details>
When I try to unmarshal it using JAXB, it throws the following exception:
Caused by: org.xml.sax.SAXParseException: The reference to entity "Address" must end with the ';' delimiter.
at org...
So here is my question. Using javascript/jQuery I am currently loading in an XML file that has a file name such as carousel_large_2010-06-08.xml.. the way I am doing it is checked for todays date then grabbing a file that has that date in the filename... the issue is sometimes they wont be uploading a new file for a given day so it needs...
reader.MoveToContent();
var xs = new XmlSerializer(typeof(DerivedTypePackage<ScriptExecutionTask>[]));
var packagedTasks = xs.Deserialize(reader.ReadSubtree()) as DerivedTypePackage<ScriptExecutionTask>[];
reader.ReadEndElement();
After calling xs.Deserialize(reader.ReadSubtree()), the reader is pointing...
I have the following in my .vimrc:
au BufNewFile,BufRead *.pt set filetype=xml
This is needed because although I'm editing a file with *.pt extension, it's indeed a valid xml file: setting the filetype like this I can have syntax highlighting.
I'm using vim's snipmate plugin, and tried to create pt.snippets to specific needs since th...
Hi everyone,
In iWeb '09, I am trying to edit the Blog entry template, and can't figure out how to remove the picture from the template. Ideally, I do not want the default placeholder picture to be present on the new entry template when I click the "Add Entry" button.
In the Blog.xml file (found under templateFileName/Shared/), it see...
Hi All,
I'm starting to learn the android NDK and I've instantly come up against a problem.
I'e built the tool chain (which took a LOT longer than I was expecting!!) and I've compiled the C++ code with no problems and now I'm trying to build the java code.
Instantly I come up against a problem. There is a file "main.xml"
<?xml versi...
I want to check if the node <Type> is either "Debit" or "Credit"
so that I can transform the information from just credit card information into Debit or Credit transactions.
any suggestion????
...
What is the best way to create a web service that returns a set of x,y coordinates? I am not sure on the object that is the best return type. When consuming the service I want to have it come back as xml preferibly something like this for example:
<TheData>
<Point>
<x>0</x>
<y>2</y>
</Point>
<Point>
<x>5</x>
<y>3</...
My application contains a set of model classes. e.g. Person, Department...
The user changes values for instances of these classes in the UI and the classes are persisted to my "project" file. Next time the user can open and edit the project.
Next version of my product may change the model classes drastically. It will still need to open...