Questions tagged [xml]

52474 questions
1

votes
2

answer
170

Views

How to recognize data format - scraping in R

I am trying to use R to get data from an open data source in the Netherlands. The source is here. When you open this in a browser (at least Chrome), it is presented as xml code. So I thought I can use the RCurl package to parse it, and then use XPath to extract the specific nodes I seek. However, wh...
user2652572
1

votes
3

answer
888

Views

URL not showing request parameters

I am taking some data from user-2 paramerters(using JS,html,jquery) , when user pclicks on GO, then calling servlet, passing these two parameters in get request: $.get("/Myservlet?param1="+myval+"®ion="+myregion,function(data){addToTables(data);hideLoading();},"text"); Servlet is returning data f...
ALBI
1

votes
1

answer
1.4k

Views

simplexml_load_string not parsing my XML string. Charset issue?

I'm using the following PHP code to read XML data from NOAA's tide reporting station API: $rawxml = file_get_contents( "http://opendap.co-ops.nos.noaa.gov/axis/webservices/activestations/" ."response.jsp?v=2&format=xml&Submit=Submit" ); $rawxml = utf8_encode($rawxml); $ob = simplexml_load_string($ra...
Chris Rae
1

votes
1

answer
878

Views

Google Maps with Multiple Information in one marker

I am developing a web application that contains some information about place. That place may have more than one agenda. Can I show more information in one marker, such as stack balloon? This is my maps http://petamajelis.org/maps/index.php This is my data http://petamajelis.org/maps/ajax2.php there...
user2829199
1

votes
2

answer
5.2k

Views

java.net.MalformedURLException: Protocol not found: but file exists

hi i've this little method: private void modifyXML() { try { String filepath = main.fileWithPath; File f = new File(filepath); if(f.exists()){ System.out.println("Exists"); } DocumentBuilderFactory docFactory = DocumentBuilderFactory .newInstance(); DocumentBuilder docBuilder = docFactory.newDocumen...
David
1

votes
1

answer
3.8k

Views

Tomcat 7 404 intelliJ resource not found

I have a simple tomcat server running from intelliJ and I'm trying to configure a servlet that will allow the user to select different colours of beer however I always receive a 404 resource not found once the form has been submitted. Is there a probjem with my code or is it a inteliJ config issue ?...
Chris Sewell
1

votes
1

answer
10.9k

Views

How can convert XML to PDF using iTextSharp?

How can convert XML to PDF using iTextSharp? the iTextSharp's current XML to PDF is clearly out of date and does not work. So I went about fixing the problem but i am not been able to covert it Can any one help me. 14 loss test ISO-133 gm 36 21 63 24 sand ISO-133 gm 71 22 23 25 clay ISO-133 mg 52 2...
sandeep.wuthoo
1

votes
2

answer
1.3k

Views

Display a layout as item in GridView

this image shows the layout of what i want to achieve, the black squares are images from the drawable folder, the red square is a framelayout with 2 images on top of one another. the problem is this : the red square (the framelayout) doesnt appear. See code below... public class ImageAdapter extend...
CENT1PEDE
1

votes
1

answer
389

Views

Can't get <source_model> attribute to work on System.XML in Magento

I'm just finishing off one of my custom shipping methods, which has multiple methods within the main method. So i wanted to have "Allowed Methods" list to show up in Admin section. So I got below block in my system.xml Allowed Methods multiselect mycompany_shipping/carrier_somefolder_definitions_met...
Thanu
1

votes
1

answer
437

Views

using xsl:number with xsl:key to get node position

I am trying to figure out how to get the multi position (1.1) of node when assigned to keys. Below is a stripped down reproduction of the issue: Input XML: Chapter section section procedure section section procedure Desired output Chapter 1 section 1.1 section 1.2 procedure 1.3 section 1.4 section 1...
PhillyNJ
0

votes
0

answer
4

Views

How to validate XML when schema is referenced in the XML document?

The XML contains a link to the schema. How can I get C# to validate the XML against the schema? ... I've changed the schema location URL for this post, so this example won't actually work. I've tried the following: var schemaErrors = new List(); var settings = new XmlReaderSettings { DtdProcessing =...
sixeyes
1

votes
1

answer
300

Views

Reset default XML namespace for single element

Is it possible to reset/remove the default namespace from a few elements in an XML document only? And, I doubt this is possible, but can you define a default namespace to use for all child elements, but not for the element itself defining it? The reason I'm asking this, is that elements from the def...
knittl
1

votes
2

answer
187

Views

Can I create a new entry in a Rails db by posting XML data in lieu of form data?

I'm playing with a very simple contacts Rails app. I have a /contacts route that I can POST to add entries in the contacts table (using scaffold). I want instead to send XML data in the POST (rather than FORM data) using XMLHttp Request. The request works, but the params object in Rails doesn't show...
Fred Finkle
1

votes
1

answer
7.1k

Views

how to import data from xml file to sqlite database

I have two xml files for android project first consist approx 550 records of districts in India and second file consists of approx 40 records of states of India Now i want to import it in a sqlite database which consist two fields first district and second state and each record from xml should inser...
Surya
1

votes
1

answer
1k

Views

Changing index.php file through xml

I am making an extension for multiple vendor in opencart and i am struck at a point. I want to add some code to the index.php file using the vqmod xml file. The xml file is working fine while making changes in other files but it doesn't work for index.php file. I am using this method of searching so...
saurabh
1

votes
1

answer
2.5k

Views

Can Jersey convert a GET returned POJO to XML or JSON depending on the request's Accept header?

This question is for Jersey 2.x. Let's say I have a GET method. The client request contains an Accept header for either XML or JSON. Is it possible for the method to return a POJO in the representation the client requested? Currently, my GET method returns JSON using Jackson. But I don't know how...
devdanke
1

votes
1

answer
1.1k

Views

RelaxNG validation using xmllint

I'm trying to make xmllint to validate this schema. Unfortunately I came to some strange issue. It looks like xmllint interpretes wrong optional arguments without interleave tag included. Here is some test schema with misspelled tag person which should be signalized by xmllint. Unfortunately xmllint...
J33nn
1

votes
1

answer
644

Views

PHP XML DomDocument - Pulling attributes and child attributes

Description 1. Description 2. Description 3. Description 5. Above is a section of XML that I am dealing with. The 'tag' attribute under 'tle-type' is the unique identifier and then in it's children 'tle-field' will be another 'tag' attribute. I'm essentially looking for a way to identify the firs...
Colin
1

votes
2

answer
2.3k

Views

How do I get domestic shipping rates via the USPS API using Google Apps Script?

Upon loading this link, which is composed of the user ID provided by USPS and details regarding the package, in my browser Link: http://production.shippingapis.com/ShippingAPITest.dll?API=RateV4&XML=PRIORITY022119021052RECTANGULARLARGE15301555 I am returned with the correct result (below) 02211 9021...
user1371414
1

votes
1

answer
83

Views

parse an xml for a particular element value

i have a xml like { . . . . . . } Similarly, I have many train Numbers and their details. I want to parse the xml for a particular train number and get all the details related to it. Like if I want to get the details for train number 2. I am using xpath as: {xPath = "//Train[@number='1'/trainData/st...
Silver
0

votes
1

answer
21

Views

Scrambling the data for dev environment after refresh to hide/mask the sensitive data

I am working on some scripts to scramble the data from specific columns. I am not very good in scripting but still some how managed to write the code with the help from stackflow Q&A this table has xml column so I want to replace data from xml column by Field Position so sometimes it should be repla...
vancouver_dba
1

votes
2

answer
1.4k

Views

Get Attribute of xml using python etree

Here is my xml . . . . I want to get attribute of this xml using orgID. Suppose orgID=1234 then output should be This is Demo Name What i have tried , import urllib2 import lxml.etree as ET url="url goes here" xmldata = urllib2.urlopen(url).read() root = ET.fromstring(xmldata) print root.xpath('//D...
1

votes
1

answer
1k

Views

xsl:character-map / xsl:output-character do not work

I need to use character transformation for my app. As example I looked at book and tried to play with example (if that matter this book Appendix A -> [2.0] section) Here is my XML (from the book): public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World!")...
Michael Z
1

votes
4

answer
1.1k

Views

Android EditText not expanding when hitting enter

I have a EditText look like this in my layout xml and it's not expanding when the user hit enter but when i changed android:layout_height="40dp" to android:layout_height="wrap_content" the the edittext is able to expand as the user hit enter. how I can keep my EditText expanding while keeping this l...
user724861
0

votes
0

answer
2

Views

convert XML column into multi rows

I have one row which one XML column contains data like below, Can you please help me to convert into rows, like Applicationid Tenantid 11119 2 11120 2 11121 2 11122 2
user8408233
1

votes
1

answer
198

Views

How to specify Constraints in XSD (XML Schema Definition)?

Problem I want to modell the following in XSD (XML Schema definition). I have the following relationship between three classes: Textuell description: Each Widget references 0 or more Actions Each Trigger references one Widget and one Action Widgets may be referenced by 0 or more Triggers Actions may...
Waog
1

votes
1

answer
73

Views

Simple Android App Crashing

I'm following the Starting Another Activity tutorial on the Android Developer website but, every time I try to run my app it crashes. I have been unable to find my error but it always crashes after I hit the submit button. I'm very new to this and have no idea what's wrong. AndroidManifest.xml Main...
squidwardtenticles
1

votes
2

answer
624

Views

Application showing error Microsoft MsXml is not installed

My application made using C++ builder XE3. In my application i have done some xml parsing using XML.xmldoc.hpp On XP machine when i run application it is showing me messagebox "Microsoft msxml is not installed". Please can anyone help me??
Anup
1

votes
1

answer
1.1k

Views

Reading a .doc extension file ,ElementTree

I have successfully read .docx files using ElementTree package using zipfile. But I realized that there isn't the archive 'word/document.xml'for .doc files . I looked into the docs but did not find any. How can it be read? For docx, i used : import zipfile as zf import xml.etree.ElementTree as ET z...
Hypothetical Ninja
1

votes
1

answer
1.4k

Views

xjc send different classes to different packages

I am using JAXB to create classes from an xsd schema. Is there a way to tag individual complexTypes so that they are sent to different destination packages rather than have them all sent to the same package? The reason I need this is that a lot of the resulting java classes will be replaced with o...
CodeMed
1

votes
2

answer
678

Views

Iterating Over Xml using findall , Lxml

I have the following xml : Hello there See you there .. I want to extract all text with the highlight "red" value. Note that highlight tag is one level down to that of the text tag. And the conditions are: For every paragraph , add an extra space . If the break tag is encountered whilst iter...
Hypothetical Ninja
1

votes
2

answer
1.1k

Views

Maven not downloading any dependencies of type pom

I am in the process of upgrading form Apache CXF 2.7.5 to 3.0.2 but I am having the problem below. When I am including the dependency org.apache.cxf cxf 3.0.2 pom import to my pom.xml I don't see any .jar files downloaded to my project. There are no errors on the project. I am using Maven 3.2.3 wi...
NikosDim
1

votes
1

answer
389

Views

A complex type without an element in XSD

Is it possible to define an XSD having only complex types without xs:elements? Something like: Or do we have to include at least a single xs:element of the defined complex type?
Rami
1

votes
1

answer
429

Views

How to specify geolocation feature in Tizen config.xml file?

I am developing Weather "webapp" for tizen which also uses geolocation feature to search for the weather for particular coordinates. Though my app is working fine in web simulator. But in order to run this app safe and sound in device or emulator we have to provide some features or privileges in con...
foxt7ot
1

votes
3

answer
3.8k

Views

How to make listview selected item selectable?

I am implementing an endless ListView (like in the Facebook app). I want to make item as select(temporarily show background as grey) which I select. when I click on listview, nothing happens(not shown as grey). I tried setting android:focusable="false" and android:cickable="false" for my List view...
Arjun
1

votes
1

answer
432

Views

Jackson XML + don't wrap value in tags

Hi is it possible to change with Jackson (XML) the following Finished to this instead: Finished My code looks like this: @JsonRootName("status") public class StatusDto { @JacksonXmlProperty(isAttribute = true) private Long id; private String status; @JacksonXmlProperty(isAttribute = true) private In...
t0tec
1

votes
1

answer
1.1k

Views

XML Serialization - Multiple Elements Same Name

Using C#, I am trying to serialize XML into this string: TxnID TimeCreated TimeModified EditSequence TxnNumber CustomerRef What must my class look like? I don't believe this would work: public class Root { List IncludeRetElement = new List(); } When I serialize, do I need to add special arguments to...
Joseph Anderson
1

votes
1

answer
890

Views

Passing a properties file in XML,Spring

I want to Autowire my service in Spring with XMl. The class I want to autowire looks like this: public class Service{ public Service(String type,Properties property){....} .... } I have an instance of this object in my controller. @Autowired protected Service service; So now I wan't to instanti...
Bosiwow
1

votes
1

answer
686

Views

How can I make a war pointing different database in context.xml

We have tomcat instance running in the development server and pointing towards the development database. We have a context.xml which has the connection pointing to the database. Unfortunately, we dont have the staging servers available. So we might have to use the same war file to connect the stagin...
upagna
1

votes
1

answer
419

Views

XSL:fo capsules table rows and cells

Hey guys is there a way in XSL:FO to capsule the rows and cells of a table or must capsule tables into tables to get a solution. Here is a picture how the table should look like:
Franz

View additional questions