Hi,
I am using JAXB to parse my xml schema(xsd). I have a complexType as follows:
<xsd:complexType name="PromotionalInfo">
<xsd:attribute name="promotionName" type="xsd:string" use="required"/>
<xsd:attribute name="blackOutDates" type="DateList"/>
<xsd:attribute name="amount" type="xsd:float" use="required"/>
<xsd:attri...
Hello,
I'm trying to execute a simple Perl program that uses XML::Simple to print out the data from an XML file.
However, the error I'm getting is :
no element found at line 15, column 0, byte 308 at /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/XML/Parser.pm line 185
The XML file is as follows :
<?xml version="1.0"?>
<c...
I was wondering when dealing with a web service API that returns XML, whether it's better (faster) to just call the external service each time and parse the XML (using ElementTree) for display on your site or to save the records into the database (after parsing it once or however many times you need to each day) and make database calls i...
Hi all, I've bought the "virtual gallery" from flashden but I'm having problems implementing it.. I'm not used to using flash galleries or xml files, so hopefully someone can help me out a bit.
Here's the call to the flash (js):
var so = new SWFObject("gallery.swf?xml=category_1.xml", "virtualgallery", "100%", "600", "10", "#414141")...
Hey,
solution (stupid!): The XML wasn't valid.. I forgot a /. Although I validated it earlier in w3schools, I added one tag and didn't close it properly.
original: I'm parsing an xml file with jQuery. In one node I store a JavaScript function with CDATA:
<action is="javascript"><![CDATA[
alert("Holy Crap!");
]]>
</action>
now I craw...
Hi there,
I try to find out to export data from a table to xml file. Here is the situation
Table1
contractID subcontractid ContractName ContractType
123 John Electrical
123 1 John Comercial
123 2 John Resi...
I have some Java (5.0) code that constructs a DOM from various (cached) data sources, then removes certain element nodes that are not required, then serializes the result into an XML string using:
// Serialize DOM back into a string
Writer out = new StringWriter();
Transformer tf = TransformerFactory.newInstance().newTransformer();
tf.s...
I'm trying to generate a DTD and I was wondering how to allow child elements to contain elements that have already been declared in the DTD. Do you have to declare them again? As an example:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE document [
<!ELEMENT document (author,title,body)>
<!ELEMENT author (#PCDATA)>
<!ELEMENT ti...
Hi,
I have been having problem with adding type="date" in my schema, as whenever it is null it throws a marshalling error. I found out that for elements we can add an attribute like nullable="true" and get rid of this issue. But, wasn't able to find similar way for attributes. Is there a way to avoid this issue for attributes?
Thanks!...
I'm processing some XML files (specifically .vcproj files) in Perl and I want to unescape the special characters. The escaped characters I've encountered so far are:
"



Obviously I can do this myself but it seems that there should be a standard (or CPAN) module to do this but a naive search brings up nothing relevan...
Say I have a very simple XML with an empty tag 'B':
<Root>
<A>foo</A>
<B></B>
<C>bar</C>
</Root>
I'm currently using XSLT to remove a few tags, like 'C' for example:
<?xml version="1.0" ?>
<xsl:stylesheet version="2.0" xmlns="http://www.w3.org/1999/XSL/Transform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:outpu...
Hello!
I would greatly appreciate if someone could shed light as to why this http://www.binarymark.com/Products/BiorhythmCalculator/bioreport.aspx?day=1&month=1&year=1971
renders perfectly in Opera, IE, Chrome, but fails completely in Firefox 3.1 and 3.5 beta 4?
What's wrong with XML/XSLT?
Thanks.
...
Hi,
I am using SlideShow Pro (a flash slideshow/media player) on a site. I want to receive notifications (in JavaScript) from the flash player when a video is finished playing so I can load another video via Ajax. There is an onVideoEnd() ActionScript call in the API:
http://wiki.slideshowpro.net/SSPfl/API-onVideoEnd
In ActionScript:
...
I have a WPF application which saves its data to XML files in a relative-to-code directory called "Data".
I get the relative path to the Data directory with these methods:
protected string ApplicationPath
{
get { return System.IO.Path.GetDirectoryName(System.Reflection.Assembly
.GetExecutingAssembly().CodeBase); }
}
prot...
I have an XML file which has four <resutGroups> tag:
<resultGroups>
<subGroups>
<name> </name>
</subGroups>
<name> </name>
</resultGroups>
each <resultGroup> has several <subGroups> and each <subGroups> has <name> tag.
I want to select only the name tag of <resultGroups> only
$(xml).find("resultGroups").each(function() {
...
Hi All,
Can a XML file be generated for an iPhone view?
The view may contain any iPhone control.
Thanks for IDEAS.
...
Hi,
I want to send some XML from a Perl program to a CGI script that makes use of XML::Simple to take that XML as input and send XML as output.
Is there a way to send XML to a CGI script from Perl? Any help in this regards would be really appreciated.
Thank You
...
Hey, I'm having some trouble using the QuickBase API from Python. From the QuickBase guide, there are two methods of hitting the API: POST and GET. I can handle the GET calls, but some API methods require XML to be sent over POST. The link to the documentation is here: http://member.developer.intuit.com/MyIDN/technical_resources/quic...
Starting from an XML with a default namespace:
<Root>
<A>foo</A>
<B></B>
<C>bar</C>
</Root>
I apply an XSLT to remove the 'C' element:
<?xml version="1.0" ?>
<xsl:stylesheet version="2.0" xmlns="http://www.w3.org/1999/XSL/Transform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="no" enc...
Can you use XMLCatalog to resolve xsds in schema import statements? If so, what is the preferred/best practice? I want to package the xsds in a jar, so using a relative schemaLocation has not worked.
So far I am trying to do something like:
SchemaFactory factory = SchemaFactory
.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI)...