xml

Read XML in VB.net

Guys I'm dying here. I have googled for the last hour or so with no luck (I'd like to think I'm a great googler too!), so here I am. I have an XML file that I'm using for my programs settings, it looks like so: <?xml version="1.0" encoding="utf-8"?> <config> <store> <number>0323</number> <address>address</address> ...

DOMException while cloning XML Node

Hi, The cloneNode() method in the following minimal example works on java 1.6 but throws an DOMException with code 14 under android 5. Code 14 according to sdk docs means: "NAMESPACE_ERR If an attempt is made to create or change an object in a way which is incorrect with regard to namespaces." Has anybody an idea why this might be? Th...

Matching expression inside of a data section of an xml element using xsl

Hi I am usually programming in c++ so XML/XSL/XPATH is not my strong side, but I need to do a transformation and I cannot seem to find a good way of doing it. We have an xml file that is formatted like this: <outer> <element/> <other_element/> <message pri="info"> [[!CDATA Error: something is not working]] </message> <me...

what can i do with semantic web and xml and web services ?

i am a cs student and i need a project for fourth year using : semantic web and xml and web services so what the best (and new) project idea i can find from these technique ...

How to generate an XML file from an ASP.NET MVC view?

My main goal is to generate an XML file that can be downloaded. The below code succeeds in generating the file but the view (/Home/XmlView) can be accessed directly. If I use the [Authorize] attribute on the XmlView() method then the file is created with the HTML of my default logon page. How do get the authorization to work with the ...

Need to convert an object to XML and getting an error

I have this class: <Serializable()> _ Public Class Bonder ''' <summary> ''' General information ''' </summary> ''' <remarks></remarks> Public BonderName As String Public Serial_Number As String Public System_Type As String Public DM_Version As String Public RTS_Build As String Public RTS_Lab...

Getting started working with XML in .NET

I've been given a collection of related xsd files and a spreadsheet with xpath information in it. I need to create an xml file conforming to the schema files and populate it with data from a database.This will be my first time delving into the XML classes in the .NET framework. Which classes will help me get to my destination the quicke...

ignore some XML tags in SAX

Hi all I'm parsing an XML document using SAX in Java. I'm working with the XML that describes research publications in different fields. Among others there are elements like "abstract" that shortly describes what the reserch paper is about. The basic HTML formatting is allowed in that field, but I don't want the SAX to threat the HTML ta...

XSLT - Remove currency formatting and check if number, otherwise pass as string

I need to remove currency formatting from a string, but my problem is that the field sometimes contains currency and sometimes it is a string of text. So it could be: $20 123,000.00 $123,000.00 Hello World! ...

Deserialize flat xml to entities

Hello, Have the following XML model <A></A> <B></B> <C></C> <D></D> Also have three classes class Foo1{ public string A; public string B; } class Foo2{ public string C; public string D; } class FooUnited{ public Foo1 foo1; public Foo2 foo2; } The problem. I want to deserialize xml into object of FooUnited type. The br...

How to Implement ConfigurationElement in c#?

Here's the error I'm getting with the code pasted below. Unable to create instance of class ZDRCreatorTests.ZDRCreatorTests. Error: System.Configuration.ConfigurationErrorsException: The default value of the property 'indexedFolder' cannot be parsed. The error is: Unable to find a converter that supports conversion to/from string for t...

Using XQuery in SQL Server 2008 to search for content

Hi, Take the following 4 example XML documents: <Example> <Colour>orange</Colour> </Example> <Example> <Car colour="orange">Ford Focus</Car> </Example> <Example> <County>Orange County</County> </Example> <Example> <Orange>555</Orange> </Example> These are all stored in a SQL Server database in a table...

What's wrong with this XPath query?

I'm trying to select nodes from an rss feed. It works fine for Twitter, but I can't do it on Youtube. string youtube = "http://gdata.youtube.com/feeds/api/users/CTVOlympics/uploads"; string twitter = "http://twitter.com/statuses/user_timeline/ctvolympics.rss"; //this populates the XmlNodeList object Xml...

XML DTD - Defining attributes as numbers and requiring #PCDATA

I realize Schema is the way to go, but this is an assignment. If I wanted to require an attribute on some element to be a float/number, is that possible? The only thing I know to do is to define it as CDATA - is there some predefined ENTITY ? I don't think I should pull in any other DTD, so if it's that complex, it's incorrect for the...

Encode East Asian languages using Python

This may not really be a Python related question, but pertains to language encoding in general. I'm mining tweets from Twitter, and it appears that there is a large Japanese user community (with messages in Japanese). When I tried encoding the tweets for an XML file I used utf-8. e.g tweet=tweet.encode('utf-8') and none of the Japanese t...

PHP SOAP client help!

Hi guys, I have to create a PHP SOAP client that sends leads, but I have never worked with SOAP before, and my XML isn't that great, here is the code I have managed to write so far. . . <?php try { $client = new SoapClient(null, array( 'location' => "https://wwa.website.co.za/CallmasterTes/LeadService.asmx", ...

How to change the footer image in each page of xsl-fo according to certain condition

Is there a way to change the footer image in each page of xsl-fo according to certain condition? ...

How can I store data against specific contact ID?

I want to store some additional data for each contact on Android. I would have in mind creating my own database table for it, and then bind them to the real contact via a unique id. I am wondering if Android has built in functionality to store additional data against contacts? EDIT 2 Is there a defined field for birthday of the contact...

How to issue a confirm (yes/no) message of a Android task?

I want to ask the user if he agrees to continue launching a task, how do I issue a confirm window having Yes, No buttons? ...

Flash AS2 loading xml from server

I have a little job modifying an old build - or so I thought. Currently I am being given a url which dynamically generates the xml eg: http://server.com/generateSomeXML?pathToFile=/files/file.flv This works fine eg: as above but ?pathToFile=http://streamingServer.com/files/file.flv This does not work, fails to load the xml. I have tr...