If I visit the feed at
http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/topalbums/sf=143444/limit=10/xml
with Firefox, it displays the feed as I would expect. But if I copy the source (view source) of this display and save it into a file like feed.xml on my local machine - it will not render the file but gives error...
I've been trying to create an xslt template, but it keeps silently failing like as if an exception is happening but is not being caught. The closing bracket is not being written out, invalidating the output;
the XML file
<?xml version="1.0"?>
<gallery>
<item>
<file>IMAGEHEADER1.jpg</file>
<thelink>michaeljackson12...
I have searched stackoverflow on this problem and did find a few topics, but I feel like there isn't really a solid answer for me on this.
I have a form that users submit and the field's value is stored in a XML file. The XML is set to be encoded with UTF-8.
Every now and then a user will copy/paste text from somewhere and that's when ...
Hi guys,
I'm trying to get the value of a number to 2 dec places from my xml.
XML:<Quantity>0.0050</Quantity>
XSL:<xsl:value-of select="format-number($quantity, '####0.00')" />
However XSL seems to have a problem with this value and outputs 0.00 in one area of the page and 0.01 in the other. Of course in this situation it is favourab...
I seem to be getting this error how can i resolve this, code below.
Dim writer As XmlWriter = XmlWriter.Create(FileLocation + "StaticUrls3.xml")
Dim urlList As New List(Of String)
urlList.Add("link1")
urlList.Add("link2")
urlList.Add("link3")
writer.WriteStartDocument()
writer.WriteStartElement("urls...
I am trying to build my iphone app from a swf in windows using pfi but i run into this error:
C:\Users\tkazak\Adobe Flash Builder 4\iphoneTest\bin-debug\iphoneTest-app.xml(117): error 105: application.icon.image29x29 contains an invalid value
C:\Users\tkazak\Adobe Flash Builder 4\iphoneTest\bin-debug\iphoneTest-app.xml(117): error 105:...
I have an XSD that defines the following schema:
<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://example.com/2010/aa/"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
xmlns:aa="http://example.com/2010/aa/"
targetNamespace="...
I have a function that gets a string passed to it. When testing the function, I'm getting a null reference exception on the string parameter that gets passed to it, even though the string is not null, I don't understand why I'm getting this error. I have a screen shot below
I used a dummy value to verify both the string parameter in...
We're writing an iPad app that saves out information as a plist for later reading by a Flash movie. Originally we designed the plist to export out as a simple plain text xml file and the Flash player read that fine. The problem with that was that the files were monumentally big and verbose so we converted it over to a binary plist. Un...
I'm happy to write my own but if there's a really nice PHP script out there that i can just run on a cron and exclude directories then i'd love to hear about it!
I'd prefer to use a scraper/crawler type script than write the XML from the database....
...
The javascript is
function loadXMLDoc()
{
xmlhttp=new XMLHttpRequest();
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
x=xmlhttp.responseXML.documentElement.getElementsByTagName("CALL");
txt=x + x.length;
document.getElementById("myDiv").innerHTML=txt;
}
}
...
So we've got an app that needs to save and load its state from disk.
We've got the state in an object currently and that object is being serialized directly to XML with the XML serializer object. I've gone over this with the other developer on the project and he seems to think this is the perfect way to go about it. He asserts that hav...
In .NET you can create strongly-typed configuration sections using build-in base classes that do a lot of the mundane heavy lifting with respect to XML Serialization/De-serialization, schema validation, type-casting, etc...
I'm working on a Java application and I'm looking for a similar capability. If there is a built-in facility for th...
I have an xslt document and I want to output an anchor (a) tag with some attributes who's values depend on other things.. Thus, I use the xsl:attribute tag with a choose/if underneath it (or vice-versa).. So my code looks like this:
<a href="/somepage.html">
<xsl:if test="current_page='this_page'">
<xsl:attribute name='class'>activ...
Given a type such as:
public class FooList : List<Foo>
{
public string SomeMessage { get; set; }
}
How can I get the SomeMessage property to be serialized along with the collection without overriding serialization itself?
What I am getting is:
<FooList>
<Foo />
<Foo />
<Foo />
</FooList>
and what I want is:
<FooLi...
I get a very misterious NullPointerException when parsing a stream comming from a socket with jdk's javax.xml.parsers.SAXParser.
My InputSource is a RecordingInputStream that I created by extending FilterInputStream in order to be able to record in a log file all the data that I receive on the socket before it goes down to the parser. B...
How do I just validate the well-formedness of an XML file in Java?
...
I am not sure if I implementing this API properly to validate an XML:
XmlOptions xmlOp = new XmlOptions();
xmlOp.setDocumentSourceName("C:/Dir/SubDir/SubDir2/myfile.xsd");
assertTrue(doc.validate(xmlOp));
I want to validate the xml object doc against the schema File myfile.xsd.
The assertion is passing but I wanted to make sure that i...
I'm trying to create a fully custom feed from my WordPress blog so that it can be ingested by a content management system that uses NewsML. You can learn about NewsML and find a NewsML validator here.
My approach has been to create a WP page template that produces xml rather than HTML, described by a guy named Yoast (google him, I can't...
I have an XML document (an InfoPath form) that looks similar to this:
<my:ClientMaintenance xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-07-06T07:04:54">
<my:Payments>
</my:Payments>
<my:Payment>
<my:Amount></my:Amount>
<!-- Several other nodes -->
</my:Payment>
</my:ClientMai...