xml

POSTing XML via HTML Forms

Hi! I am developing a Web and want that the user could create some stuff POSTing xml data. For that propose there is a < textarea > where the user can write (copy/paste) xml and submit it. The problem is that I am loosing data, characters such as '<','>' and i think others too get lost. Maybe it is a framework problem, not sure, I am u...

Help me summarize these scripts.

its like pyramid where each object will have 2 object under it for 4 layers. if (myXML.MEMBER[1].@AVAILABILITY=="NO") { circlesArray[0][0].mouseEnabled=false; TweenLite.to(circlesArray[0][0],0.8,{tint:0x333333}); manArray[0][0].mouseEnabled=false; TweenLite.to(manArray[0][0],0,{tint:0x666...

Include XML in SOAP response

Hi, In my WSDL my reponse I have it setup to be like this: <message name='getPartsResponse'> <part name='Result' type='xsd:string'/> </message> The problem I am having is that what I am sending in the response is XML and not an string. As a result of this I am getting the XML of the response (not the XML SOAP Response (that is ok))...

LINQ to XML, replace child nodes but keep state

I've got the following XML passed as an IQueryable to a method, i.e. XML: <body> <p>Some Text</p> <p>Some Text</p> <pullquote>This is pullquote</pullquote> <p>Some Text</p> <p>Some Text</p> <body> Method: public static string CreateSection(IQueryable<XElement> section) { var bodySection = from b in articleSection.Des...

What can be used as [context] in jQuery( expression, [context] )?

The following code does not return anything: $('.foo', $('<div class="foo">foo</div><div class="bar">bar</div>').get(0)).html() Is there any way to specify a string representation of xml/html as the context parameter of the jQuery function? I'm trying to select a section of an html document retrieved from an ajax request; the ajax ...

XSLTing an xml to another xml comes up with a blank page

Hi all: I'm totally stuck on what is going on when I try to run the following xml against an xsl in an attempt to not get a blank page in the browser: xml: <?xml version="1.0" encoding="utf-8" ?> <?xml-stylesheet type="text/xsl" href="transform.xsl"?> <Structure> <Processes> <Process> . . ...

Dom Vs Sax - creating Xmls

Hey, I know the difference between Sax and Dom is pretty substantial regarding parsing Xml, but what about creating ones ? is there even a way to create new Xml using Sax or that if i want to create new Xml file based on my data in my program , i will have to use DOM ? Thanks ...

XML Validation XSD problem

Hello. XML: <?xml version="1.0" encoding="UTF-8"?> <data> <ac code="JL" auto="1"> <fee>10e</fee> <comission> <if country="JP">5%</if> <else>7%</else> </comission> </ac> <ac code="B2" auto="1"> <fee> <if country="RU">35e 50e 50e 80e 15e 10e</if> <...

Where is the URL in the xml/xsl namespace stored?

Hi all: In the xml (or xsl) namespace, there is a URL which isn't quite a URL, I mean, the http thing in the code below: e.g. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> I'm curious as to where is that URL actually point to, and where is the referenced things stored? (I tried googling, but withou...

Parsing XML on iPhone created in PHP

Hello, i'm trying to parse a xml string with NSXMLParser which i created in PHP. My PHP sript is: $doc = new DomDocument('1.0'); //$doc->preserveWhiteSpace=false; $root = $doc->createElement("root"); $root = $doc->appendChild($root); $child = $doc->createElement("child"); $child = $root->appendChild($child); $value = $doc->createTextNo...

How do I serialize modified in-memory xml from an XmlDataSource without calling XmlDataSource.Save()?

// XmlDataSource Setup XmlDataSource xds = new XmlDataSource(); xds.Data = @" <attributes> <attribute>ATTR1</attribute> <attribute>ATTR2</attribute> </attributes>"; xds.XPath = @"attributes/attribute"; xds.DataBind(); The XmlDataSource is used to render and modify contents in a Telerik RadGrid. How do I access t...

Create dynamic Excel files based on a template, using XML data.

I'm currently looking for a way to create dynamic excel files, based on an existing template, using data coming from an XML-file. For example; I have a template ExcelTemplate.xlsx with some layouting in it. A user calls a method which will create a copy of the template and fill it with data coming from an XML. After that the user will ge...

iPhone XML Parser - [c setImage:[attributeDict objectForKey:@"img"]]; WARNING

Hi I am having issues with the following and it crashes the iPhone simulator, while the script has no errors it did bring up one warning in this script. [c setImage:[attributeDict objectForKey:@"img"]]; The warning is City may not respond to -setImage: I am not sure what I have done wrong here is the fill source code. #import...

How to read an XML file with Java?

I don't need to read complex XML files. I just want to read the following configuration file with a simplest XML reader <config> <db-host>localhost</db-host> <db-port>3306</db-port> <db-username>root</db-username> <db-password>root</db-password> <db-name>cash</db-name> </config> How to read the above XML file with ...

XML to dynamic select menu (with AJAX)

Hi, I'm new to AJAX and XML. I'm stuck on a school assignment.. The task is to process an XML file consisting of 2000 different places with name, name of city and name of county. and making a dropdown menu with the different counties, but only once. The XML file looks like this: <places> <place> <Name>Vestby</Name> <City>Vestby</...

Why i get errors, putting SeekBar on widget layout?

<RelativeLayout xmlns:android = "http://schemas.android.com/apk/res/android" android:id = "@+id/widget" android:layout_width = "fill_parent" android:layout_height = "fill_parent" android:background = "@drawable/widget_background" android:layout_gravity = "left" > ...

Button with custom XML layout.

Hi! Is it possible to create a button with a custom xml layout? I have this layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="1dp" android:background="#7e7e7e"> ...

What is the difference between XML and XSD?

What is the difference between Extensible Markup Language (XML) and XML Schema (XSD)? ...

Extract and format dates from xml using xslt

A legacy system that I am working on has a piece of xml which has data embedded in one of the nodes which uses its own format - for some or other reason. I need to extract the information and then re-format the dates. This is the piece of xml: <Information> [OB]LGW|Sun 23, May 2010|11:15|MCO|Sun 23, May 2010|15:25[/OB] </Information> ...

Is there any reason to use XML/XSLT when using a PHP/MySQL App?

I have been making HTML/PHP/MySQL database apps for quite a while now. I have avoided using XML/XSLT in any application since I just pull the data out and format it within my PHP script, and display it. Assuming I am not wanting my data to be portable to other people's applications (via XML), is there any reason to implement an XML/XSL...