xml

How to tell Java SAX Parser to ignore invalid character references?

When trying to parse incorrect XML with a character reference such as &#x1, Java's SAX Parser dies a horrible death with a fatal error such as org.xml.sax.SAXParseException: Character reference "&#x1" is an invalid XML character. Is there any way around this? Will I have to clean up the XML file ...

Xpath > How can I select a node based on both its attributes and content?

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...

Something to dynamically Generate a UI to edit XML file?

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"...

XML error in android application

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 ...

How can I combine xsl:attribute and xsl:use-attribute-sets to conditionally use an attribute set?

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...

Coversion of exchange server's fetched XML to Google Calendar compitable XML

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? ...

How to isolate a single element from a scraped web page in R

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...

XDocument containing namespaces

I have the following XML which I am trying to query with XDocument: <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"&gt; <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"&gt; <EventID>589828</EventID> <Type>3</Type> <SubType Name="Information">0</SubType> ...

Flex : error while connecting to database with XML

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 ....

ArrayCollection loop through for matching items

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 ...

XML/PHP : Content is not allowed in prolog

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...

Java XML Unmarshalling fails on ampersand (&amp;) using JAXB

I have the following XML: <?xml version="1.0" encoding="UTF-8"?> <details> ... <address1>Test&amp;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...

Loading an XML file with todays date in the filename... need to fallback to old file if one with todays date doesnt exist..

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...

XmlSerializer.Deserialize System.Array

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...

How to make a file with .pt extension, with xml syntax highlighting and vim's plugin snipmate load pt.snippets?

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...

How to edit iWeb 09 Blog Template?

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...

Android NDK r4 san-angeles problem

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...

Using xsl:if to check the value of a node

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???? ...

Return XML data from a web service

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</...

best practice to persist classes model

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...