xml

Finding embedded namespace uri's.

Hi, Given the following: You will note that embedded in this xml sample is an Organisation node with its' own namespace declared with xmlns="" This is declared like this rather than using a prefix. Is there any way of finding all the namespaces declared in an xml document using xpath? I have tried a few variations, unfortunately xmlns...

Sending XML over HTTP in a simple, neutral way...

We have some standalone devices that will send XML messages to arbitrary processing software (may be developed by us, may be 3rd party) over HTTP. The messages are relatively simple, and will conform to an existing schema. No specific reply is necessary. I suddenly find myself lost in a world of web service technology jargon. I'd lik...

WCF XML and Serialization with List

I have a basic WCF service that takes some xml. Some of the xml is a list like so: <Root> <Products> <Product> <SKU>1234</SKU> <Price>2533</Price> <ProductName>Brown Shows</ProductName> <Quantity>1</Quantity> </Product> <Product> <SKU>345345</SKU> ...

XSLT 1.0 Group By

I have the following XML data: <?xml version="1.0" encoding="iso-8859-1"?> <results> <result> <MemberFirstName>JOHN</MemberFirstName> <MemberLastName>DOE</MemberLastName> <MemberLogin>1</MemberLogin> <Store>0180</Store> </result> <result> <MemberFirstName>JANE</MemberFirstName> <MemberLastName>D...

Zend Framework app as a web service

I'm developing a zend framework app that's just going to act as a web service. I have no need to ever output HTML at any point in the application and don't even want the overhead of creating empty view files. I want my app to output XML by default, JSON if requested (via the format parameter would be fine). Is there any way to do this ...

What is the best way to paginate xml results using jQuery?

I am using jQuery to get results, as xml, from a MySQL database. What is the best way to paginate the results? Right now my script gets the xml and appends each result as a <li> element to a <ul> element. I'm guessing it will have something to do with creating a global var that gets changed with the next/previous page button that runs...

Version control on a HUGE number of XML files

I am working on a system that will have several hundred thousand XML files, ranging from 2K to 1MB in size. Does anyone have experience using version control with >300k files? Will SVN or git become problematic? I am familiar with SVN but have no experience with any other version control. EDIT: I have tried both SVN and git with 120,00...

styling XML (not HTML) with javascript & css after rendering in browser

Hi, I'm using a webkit browser (safari), so this question is specific to webkit. I have safari rendering an XML document (it's not HTML). In order to style certain sections of the document, I've attached a stylesheet (see below) to the document. In the case below, the text within the first "thing" element is displayed in magenta. This...

iPhone Parse Local XML File

I have an iPhone app that does XML parsing from a URL. I have a sample.xml file in my Resources directory (in XCode) that I'd like to use for testing. How do I reference this file in code? I've tried @"sample.xml" as the URL and it doesn't appear to be able to find it. ...

Decent tool/library for C++ to handle XML ?

I need to do some XML-related job (parsing, comparison etc). Is there any C++ library for this that you know works good ? Preferrably for Win XP. Thanks. ...

How to encrypt/decrypt an XML file?

I am trying to encrypt/decrypt an XML file. I found this sample for encrypting but I do not know how to decrypt? Any idea? Thanks! // Load this XML file System.Xml.XmlDocument myDoc = new System.Xml.XmlDocument(); myDoc.Load(@"c:\persons.xml"); // Get a specified element to be encrypted System.Xml...

PHP XML adding new entry

Hello, How do i edit a xml files and add a new entry at end of < / user > ? My xml(filezilla) look like <FileZillaServer> <Users> <User Name="test"> </User> /* using php to add another users on here <User Name="test2" */ </Users> </FileZillaServer> Thank you for help. ...

Hibernate Configuration Xml

Hi. I am developing a java web application using hibernate as ORM. Is it possible to merge Hibernate.cfg.xml with the applicaion-config.xml? ...

Excel to XML code in java?

Hi, I need code in java for Excel to XML conversion. where Excel sheet will be used as the input file and XML file as the output file.we have to read the Excel file Row and column wise and than write that data to XMl file. please anybody give any Code or URL or any Repository of example,which would be appreciated. Thanks, Mishal Shah...

xml, html or xhtml in <xsl:output>: Which is the better choice?

For historic reasons we have a mixture of <xsl:output method="xml"> and <xsl:output method="html"> and <xsl:output method="xhtml"> inside an include-hierarchy of XSL files. Now we want to refactor so all XSL files use the same output method. In the end we want to produce XHTML-output so I suppose the latter would be the best c...

How to insert content of large xml file into tables in sql server 2005?

Hi all, I need to insert the content of an xml file of size 350 Mb into tables in sql server 2005. How to insert? I have tried to use bulk insert but got out of memory exception. Please help. ...

xml vulnerabilities

xml has been the backbone of the service oriented application(SOA) and it will be a useful one in the coming future. As xml is easy , flexible, it can be easily made vulnerable and the attackers can use it for their own purpose. As such some of the attacks by are coercive parsing attack, xml external entity(XEE) attack, xml dos(xdos) att...

T-SQL cut XML into pieces

I have a table create table Profiles (id int, xml_data xml ) that has an xml column and for each row i have the same xml that looks like this : <Profile> <personalInfo> <contactInfo> <firstName>John</firstName> <lastName>Doe</lastName> <address>22 Park Avenue</address> <address2 ...

Parsing responseXML via AJAX POST

Hello I'm trying to develop a small AJAX program. XML I get from the server in responseXML. <?xml version="1.0"?> <serverResponse><resultaat>1</resultaat></serverResponse> If I try to retrieve the "resultaat" node and its content using this code : var serverResponse = mailObject.responseXML; var resultaatXML = serverResponse.getEle...

WCF XML Serialization & Overloading

In my WCF service I only want 1 endpoint (1 URI), however, I want this URI to be able to handle multiple types of requests. 5 different request types can be sent to this service from another company. Each request has a unique XML schemas. I created classes for each XML request to be serialized. Normally I would just overload a function ...