Hi,
I've been tasked with build an accessible RSS feed for my company's job listings. I already have an RSS feed from our recruiting partner; so I'm transforming their RSS XML to our own proxy RSS feed to add additional data as well limit the number of items in the feed so we list on the latest jobs.
The RSS validates via feedvalidator...
What's the difference between the two and when should I use each:
<person>
<firstname>Joe</firstname>
<lastname>Plumber</lastname>
</person>
versus
<person firstname="Joe" lastname="Plumber" />
Thanks
...
Hey all,
I'm trying to use XPath to parse an XML document. One of my NSXMLElement's looks like the following, hypothetically speaking:
<foo bar="yummy">
I'm trying to get the value for the attribute bar, however any interpretation of code I use, gives me back bar="woo", which means I need to do further string processing in order to o...
Is it possible to modify/write data to an XML file without any server-side proxy(e.g. a php or asp script)? Can this be done via javascript? XSLT?
...
This is the XML i am creating in javacript
I am sending this to an aspx page and doing the following things
XmlDocument objXmlDoc = new XmlDocument();
Request.InputStream.Position = 0;
objXmlDoc.Load(Request.InputStream);
objXmlDoc.Save("MyXML.xml");
It is showing an exc...
So I have this large XML file containing 300+ elements for each record and I need to insert these records into a database table. The name of the nodes in the XML file are the same as the column names in the db. And they're all strings. Is there an automatic way to map them and insert the data or will I have to write out lines of code map...
In a .net web application I talk to a 3rd party CMS api which gives back html. I need to convert it to well formed xml, so I use an .NET wrapper around HTML tidy. This generates a nice DOM, but things go wrong when characters such as are used.
I need those to be converted to their code format like   in order for an XmlDocume...
I'm using a third-party library that returns "XML" that is not valid, because it contains invalid characters, as well as non-declared entities. I need to use a Java XML parser to parse this XML, but it's choking.
Is there a generic way to sanitize this XML so that it becomes valid?
...
I am trying to read an XML-file from another server. However the the company that's hosting me seems to have turned of the file_get_contents function from retrieving files for files from other servers (and their support is not very bright and it takes forever for them to answer). So I need a work around in some way.
This is my current c...
A website I'm working on (using AS2 because it's oldschool) has a larger index .swf file that loads sub-swfs using loadMovie("foo1.swf", placeToShowSwf). There's foo1.swf through 4, which is silly because the only thing that's different between them is a single number in the address of an xml file that tells it what content to load. So I...
I've got to get a quick and dirty configuration editor up and running. The flow goes something like this:
configuration (POCOs on server) are serialized to XML.
The XML is well formed at this point. The configuration is sent to the web server in XElements.
On the web server, the XML (Yes, ALL OF IT) is dumped into a textarea for editin...
I am trying to deserialize an object from xml in ruby. Something simple like
u = User.new({:client_key => "Bar"})
v = User.new(u.to_xml)
I get an error NoMethodError: undefined method `stringify_keys!' for #String:0x20fc7cc>. I'm not sure what I have to do in order to get the string from xml to an object.
Update:
@avdi gave me the...
For my web service component, I need to generate a relatively large XML (~500 lines) according to many factors. I am facing a few different choices here:
1. StringBuilder
2. XmlWriter class
3. C# object with serialization???
Which one should I use. Is there any other ways that I am not aware of?
...
I have a class with a nullable int? datatype set to serialize as an xml element. Is there any way to set it up so the xml serialializer will not serialize the element if the value is null?
I've tried to add the [System.Xml.Serialization.XmlElement(IsNullable=false)] attribute, but I get a runtime serialization exception saying there ...
Lately I've been using XPathDocument and XNavigator to parse an XML file for a given XPath and attribute. It's been working very well, when I know in advance what the XPath is.
Sometimes though, the XPath will be one of several possible XPath values, and I'd like to be able to test whether or not a given XPath exists.
In case I'm get...
I have an ASHX handler that returns an XML response (FileStructureXML.ashx).
Now I need to get the XML response from the ASHX handler and use it as a data source for my ASPX page.
If I point the XMLDataSource to a static XML file on the server, the treeview populates as expected. However, if I point the XMLDataSource to the ASHX handl...
I'm using the PHP Eclipse.
When a XML file is opened, Eclipse doesn't seem to recognize the xml, meaning that all looks black.
When opened the XML file like "open with" and point to eclipse, it works fine.
What setting can be set to use that automatically so that eclipse recognizes it all the time?
Same goes for HTML files actually.
...
What do you usually use to connect to a Web Service when you are developing a Java project?
There are different API-s that can do the job.
From different books and tutorials I have read about: JAX-WS, JAXB, JAXM, JAXR, JAX-RPC, Axis ans so on.
I'm interested in what exactly are you using and how much? Take this as a survey if you wish ...
I am writing an RSS feed (for fun) and was looking at the spec here.
RSS is a dialect of XML. All RSS files must conform to the XML 1.0 specification, as published on the World Wide Web Consortium (W3C) website.
Obviously this means that I am not serving 'pure' RSS if I choose the JSON option. That said, if I conform to the rest of...
The original question is below, but I changed the title because I think it will be easier to find others with the same doubt. In the end, a XHTML document is a XML document.
It's a beginner question, but I would like to know which do you think is the best library for parsing XHTML documents in PHP5?
I have generated the XHTML from HTML...