xml

PHP XML: How to display XML with PHP

How would i retrieve what is inside these XML tags in php? I can get it to work when they don't have a ':' inside the tags. But for this, it doesn't seem to work: $description = $item->getElementsByTagName('desc'); $description = $description->item(0)->firstChild->nodeValue; <sql:time>21:00</sql:time> <sql:event> Empty </sql:event> <...

Open source Tool/Script for visual editing of xml

In one of the propitiatory product on which I am working needs configuration to be setup using large XML files. So I am looking for a solution to easily edit the XML is a visual interface. Tried following Visual Editor for XML VEX Eclipse Plugin (very early, so features missing) Using XSLT (Ruled out, Considering the size of DTD's) ...

Does anyone know how to enter list of website resources and output an xml doc for Flash use

I've got to construct a basic xml file listing website assets (pictures and text strings) that a flash photo gallery references. I'm using a Mac and OpenOffice. I've got Dreamweaver, dashcode, and a couple of open source IDE's. I'm not a programmer, so scripting gets a little difficult. I'm hand typing the file right now, but the task ...

Actionscript 2 Problem with Buttons not working from Dynamically AttachMovie

Hi guys, I'm trying to populate a list of buttons with results from a xml picture list in AS2. These buttons will load the resulting image from the xml. I'm populating the buttons by first getting the number of results in the xml, and then using a for loop to attachMovie the require number of buttons and assign the actions to them. Th...

How can I write XML output?

How can I see the XML output of following C# code? I can see that it uses XElement, but where I can locate the XML file or the output? private void Form1_Load(object sender, EventArgs e) { XElement doc = new XElement("searchresults"); // root element //create XElement result = new XElement("result", ...

Does xmlsec returns a 0 on exit?

I need to know, if xmlsec returns 0 if file is well authenticated? ...

How to marshal a DataHandler annotated as @XmlAttachmentRef with JAXB?

I'm trying to marshal an object which has a DataHandler field with JAXB (2.1.12). For streaming support, the DataHandler is annotated with @XmlAttachmentRef. Serialization and streaming over web services (Metro on JBoss) work fine, but plain marshalling with JAXB doesn't. Here is a stripped down example: public class DataHandlerAttachm...

Remove all empty elements using xlinq

I'm doing some transforms using xlinq and some of those transforms can result in leaving empty elements in the document. Once I am done all of those transforms, how can I query an xdocument for all empty elements? In other words; if I remove all <a> tags which happen to be the only element inside an <li> tag, how do I remove the empty...

Array to XML -- Rails

I have a multi-dimensional array that I'd like to use for building an xml output. The array is storing a csv import. Where people[0][...] are the column names that will become the xml tags, and the people[...>0][...] are the values. For instance, array contains: people[0][0] => first-name people[0][1] => last-name people[1][0] => Bob p...

RoR - Rendering nested errors on XML

Good afternoon, I'm trying to render as XML the complete ActiveRecord error list, problem is when you do something like: respond_to do |format| format.xml { render :xml => @object } end It does not render nested attributes if you don't say so, so either: you should create a template or calling explicity to_xml method and using ":i...

What's the advantage of having a website with two XML tags?

I was over at the StarCraft2 website and decided to take a look at their source and saw this: <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="layout/artwork.xsl"?> <page lang="en_us"> <artwork/> </page> ... and that's it. So I was wondering, what's the point in using an XSLT if you're just using 2 tag...

Parsing namespaced XML using libxml-ruby

I'm attempting to parse XML in the following format (from the European Central Bank data feed) using libxml-ruby: <?xml version="1.0" encoding="UTF-8"?> <gesmes:Envelope xmlns:gesmes="http://www.gesmes.org/xml/2002-08-01" xmlns="http://www.ecb.int/vocabulary/2002-08-01/eurofxref"&gt; <gesmes:subject>Reference rates</...

Best practices for storing html form content in XML document

I have two web forms which are filled in by the user. They contain different types of fields: text boxes, radio buttons, check boxes (single or in groups). All the information that user submits I store in XML field in a database. My question is: what are the good practices for string that kind of informations in a XML file. For now I...

Flash not displaying on dreamweaver template based pages

I have a test site up here and as you can see, the Flash movie plays fine. But when you navigate to an inside page it does not. The flash movie has an action in the native file that references an xml file to list the images. So why wouldn't the inside pages do the same? ...

SQL XML Bulk Loader - Error connecting

I'm using the sqlxmlbulkloadlib to perform an xml bulk load. When integrated security=SSPI, the process completes fine inside a workflow hosted on my local machine in a wcf service. However, when that workflow is hosted on our server and kicked off from a service reference on an aspx page, the bulkloader produces an error connecting to...

Using Xpath in Dom4j

I get the following exception when trying to access any nodes of a parsed xml document on dom4j: Exception in thread "main" java.lang.NoClassDefFoundError: org/jaxen/JaxenException at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230) at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207) at org.dom4j.tree.Abstr...

C# ComboBox Text.

At the moment I have a combobox that is populated from the name fields of a xml database. I have the following code to do this: XmlDocument xmlReturnDoc = new XmlDocument(); xmlReturnDoc.Load("Data.xml"); XmlNodeList xnList = xmlReturnDoc.SelectNodes("/Students/Student"); foreach (XmlNode xn in xnList) { string firstName = xn["FirstName...

Can we create a Silverlight Socket Server ONLY using SILVERLIGHT and XML's (NO WCF WPF CONSOL APPS)?

Can we create a Silverlight Socket Server ONLY using SILVERLIGHT and XML's (NO WCF WPF CONSOL APPS)? If yes. What do I need MSDN if there is any help on this. Open Source Libs/wrappers for encoding/decoding. Tutorials and blog articles on How to do it. If no I need where did you get the info from (link to MSDN or other official...

C# Write to Specific XML Node.

I have a xml database with the following format: <Students> <Student ID= *GUID NUMBER*> <FullName>John Smith</FullName> <Address>Blah blah blah</Address> and so on... <Student ID= *GUID NUMBER*> <FullName>Joe Blow</FullName> <Address>Blah Blah</Address> and so on... I have a combobox that will select from this xml data t...

What's the difference between xelement.load and xdocument.load?

as stated above, whats the difference between XElemen.load and XDocument.load? they both load xml files... ...