xml

embedding javascript and CSS in an SVG

i have a map of the US: http://upload.wikimedia.org/wikipedia/commons/a/a5/Map_of_USA_with_state_names.svg i am trying to embed this code in it: http://sixrevisions.com/tutorials/javascript_tutorial/create_lightweight_javascript_tooltip/ as you can see it has CSS and javascript however, i am having a very diffficult time trying to p...

error on line 127 at column 19: AttValue: " or ' expected

i am getting this error on the last line here: <path d="M 909.99146,226.40625 L 911.86646,228.4375 L 914.05396,232.03125 L 914.05396,233.90625 L 912.02271,238.4375 L 910.14771,239.0625 L 906.86646,242.03125 L 902.17896,247.34375 C 902.17896,247.34375 901.55396,247.34375 900.92896,247.34375 C 900.30396,247.34375 899.99146,245....

how to prevent external xml file modification?

Hi guys, I'm coding a little library which will handle xml files to store some data, and I need this data to be handled only by the methods I provide in my library. I know that xml is readable for both human and machine, and that if somebody really wants to modify the xml file he'll probably do it, so... do any of you have an idea that ...

error on line 39 at column 26: Namespace prefix xlink for href on script is not defined

i am embedding a javascript file inside an svg file like this: <svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sou...

error on line 1 at column 1: Document is empty

after many questions i am still puzzled as to what my question should be i am getting this error when i add CSS into my SVG: style.css * {margin:0; padding:0} body {font:11px/1.5 Verdana, Arial, Helvetica, sans-serif; background:#FFF} #text {margin:50px auto; width:500px} .hotspot {color:#900; padding-bottom:1px; border-bottom:1px dott...

javascript code not executing!

i have an index.html lik ethis: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>JavaScript Tooltip Demo</title> <link rel="stylesh...

Google checkout integration with .NET

Hi all, I'm trying to use server to server XML API for google checkout with c#.net 3.5. I'm getting the following error when I try and post my URL "The remote server returned an error: (400) Bad Request." even though I'm sure I've followed their instructions to the letter. My code is below... help anyone? public void DoWebRequest...

what does #someDiv mean?

when the user puts his mouseover this object i want a message to pop up: onmouseover="evt.target.setAttribute('opacity', '0.5'); $('#someDiv').show();" onmouseout="evt.target.setAttribute('opacity','1)'); $('#someDiv').hide();" what exaclty does someDIv mean? where do put the text? i am doing this and it is not showing the text at al...

Using XSLT to change surrounding data based on an empty tag.

In the process of trying to make a stylesheet to convert old LoC transcriptions of books that used a very-outdated SGML DTD for formatting, I've run into a roadblock at the following situation: In the converted XML files, there are some lines of text like the following: <p> Text on left <hsep></hsep> Text on right </p> hsep essentiall...

LINQ to XML .Count() method returning HEX? How to Convert it to Int?

I am having a problem converting a value to int. I ran this query to count number of tags in xml file var items = (from category in xml.Descendants("category") where category.Attribute("id").Value != "0" select category).Count(); it is returning me this 0x00000002 when i am expecting...

XML element containing other xml characters replaced using xstream

Hi, I'm using xstream in java 1.4 and I'm having an issue with some embedded xml in the elements. I have the following message: <detail> <SwiftMessage><SWIFT>hi<SWIFT/><SwiftMessage/> <detail/> The element data hi is a string held in the SwiftMessage tags. I can see that Xstream is seeing these and replacing them with &lt;SWIFT&gt;...

How to handel empty elements during doing sum of elements using xslt

<LIST_R7P1_1> <R7P1_1> <ORIG_EXP_PRE_CONV /> <EXP_AFT_CONV >34<EXP_AFT_CONV /> <GUARANTEE_AMOUNT /> <CREDIT_DER /> </R7P1_1> </LIST_R7P1_1> <total><xsl:value-of select="LIST_R7P1_1/R7P1_1/ORIG_EXP_PRE_CONV + LIST_R7P1_1/R7P1_1/EXP_AFT_CONV + LIST_R7P1_1/R7P1_1/GUARANTEE_AMOUNT + LIST_R7P1_1/R7P1_1/CREDIT_DER"/></total> I...

unable to query each element from this xml. i have to fetch title, id,

<?xml version='1.0' encoding='UTF-8'?> <feed > <id>http://gdata.youtube.com/feeds/api/videos&lt;/id&gt; <updated>2010-08-24T13:18:29.767Z</updated> <category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/&gt; <title type='text'>YouTube Videos matching query: aa</title> <logo>http://www....

Write to XML using c#

Hi. How can I create xml file with this format using c#? <?xml version="1.0" encoding="utf-8" ?> <wrap> <content> <title> WHAT ARE ROLES? </title> <text> Roles are security based permissions that can be assigned to registered user of the site. Users can have any number of role based security permissions that ...

Struts 2: Send XML data to server from client?

I have a xml data in the client. I send it to server. Then process it in server. But i get a fatal error. Here is the javascript code: console.log($.isXMLDoc(xmlData)); // prints true $.ajax({ url: 'foo.bar' , processData: false , data: xmlData , success: function(data){ } }); And my j...

XML Schema file, explain ?

Hi XML Professionals, This is part of one of our XML files in SharePoint: <BuildManifest nsprefix ="ns0" ns="http://tempuri.org/Eform_Schema.xsd" version="1.1"> <IdentifyInputParameters> <BusinessObject ref="Request1" type="RequestProcessing_BL.Request" /> </IdentifyInputParameters> <Metadata> <So...

dynamic dropdown menu in as3

Hi, I've just started learning as3 and I've been trying to find a good tutorial on dropdown menu's using just xml and as3. Most of what I've come across so far are either static menus or menus driven with heavy use of the timeline. Is it even possible to build a nice fluid drop down menu completely in code? If so and anyone has some go...

HTML tags in XML file, how to ignore HTML tags while XML parsing

Hi all, Thanks in advance, I am using NSXMLParser to parse xml file, in my application, my xml file is like this < item > < ID > 123456 < /ID > < category > Films < /category > < Heading > HollyWood films < /Heading > < Author > samule < /Author > < imageFull > http://tree_one.jpg < /image...

Adding Attributes to XML file Linq C#

Hello I wanna add a Test (common) attribute to all my XML files. So that I could use it as a common attribute when I wanna test them. I tried CreateAttribute but Linq dosen't recognize it I tried "xElement.Add(new XAttribute("Test", value));" but it also didn't work Any Suggestions? Thanks Here for example is a code public void...

XmlReader.Create(textReader, XmlReaderSettings) Validation Issue

For the most part, when I perform an XmlReader.Read() I am catching validation errors based on my schemas. This, however, is a large group of schemas with several imports and includes. My question is why I'm having validation errors in two places that seem to be defined in the schema. Here's an example: Schema 1 (you can see that Ide...