Extensible Markup Language (XML) is a structured document format that defines human- and machine-readable encoding rules.

learn more… | top users | synonyms

1
vote
0answers
36 views

Python XML - extracting information

I am very new to Python, and also this is my first time trying to parse XML. I am interested in information within str elements. I can identify that information ...
2
votes
0answers
24 views

Android Compass

I have made my first app in Android Studio. I made a compass using a sensor-listener. I would greatly appreciate if someone could review my code (it is very short), and suggest improvements. My ...
4
votes
3answers
548 views

Nit picking performance on this search code

I am working on a fairly complex (at least it feels complex to me at the moment) search program and am looking to possibly increase the performance. Everything works exactly how I want it to, but I'm ...
1
vote
1answer
33 views

Parsing specifically nested XML Tags

I've written a function that works however I'm sure there is a better way. I need to parse specific tags from an xml document (Microsoft Word docx document.xml). Here is the general structure of the ...
2
votes
1answer
39 views

Reading and Converting XML File to Array

I'm using WordPress ( PHP Based Platform ) and I'm trying to read an external XML File, convert it into a usable array, then compare two arrays - one from the xml file and another from an options ...
11
votes
2answers
86 views

HTML/XHTML/XML tokenization

I want to write a library to parse any valid or invalid HTML-like things. First of all, I am trying to build a lexer. Here is what I did; ...
1
vote
1answer
24 views

Class derived from TXmlIniFile to save/read to/from XML

I have created this unit containing a class derived from TXmlIniFile. This class uses the common TCustomInifile methods to write to and read from an XML file. It comes from an idea of Chris Rolliston ...
0
votes
1answer
43 views

Parse and Query XML code optimisation

I have stored in a XML file some Travel packages, each package has a code( the codes are stored in an array = $code). I am using the below code to pull the ...
5
votes
1answer
45 views

Android Compound View Usage

I have 2 buttons for Terms and Conditions in my project, that I need to implement in multiple activities. I created the following class: ...
0
votes
1answer
85 views

XML document parser with XPath

Here is my simple implementation on XML parser for XML which I received from a server response. Also I've tried to use XmlPathDocument but failed to get child ...
8
votes
1answer
98 views

Reading Values From Enviromental Monitor XML Feed

I have written the below code to handle accessing and parsing the data presented in XML format from our server room environmental monitor. The plan is to call this class from a controller/view ...
0
votes
0answers
157 views

Performance increase on Spring integration

I have been running a program to read a file having 6 million rows and validate each line and write the string containing the validation message to an output file. I am using spring integration to ...
4
votes
1answer
133 views

Python prettyXML and prettyHTML functions

After much searching around the web, I couldn't find a single module which did a decent prettyXML or prettyHTML. Because: ...
1
vote
1answer
120 views

Executing URL using Apache HttpClient

I have XML below which is stored as a String in xmlData variable and I need to pass this String to my URL in ...
3
votes
2answers
69 views

Basic XML Parser

A while back, I posted an XML Writer. Today I have finished what I hope to be a solid XML parser that, while not professional, will get the job done. To start, I do use a stack on one part of the ...
10
votes
3answers
346 views

Read/write to XML using LINQ

This will compile, but I'm thinking that this implementation of read/write is very hard coded and would not be easily adapted to larger situations where large XML documents are being processed or if ...
6
votes
2answers
145 views

Strategy Pattern Implementation

I thought I would learn a design pattern today and picked this one. I wrote a simple Android test demo to test the pattern. main.xml ...
-5
votes
1answer
93 views

What are the Steps/Algorithm to load/Parse an XML File? [closed]

I want to write an xml parser by my own, i know to search for a string, load files into memory using vectors, but is theres a way i can use this to load and parse xml file, i were told to make a DOM ...
7
votes
1answer
390 views

XML tags constants vs hardcoded values

I have to create an XML body for a web service call. I want to use: ...
2
votes
1answer
158 views

Design a row in a listview

I want to design a row of the following style in my Android project: I have the following code for this: ...
1
vote
0answers
51 views

PHP DOM XML Creation

I am currently working on Shopify webhooks which posts XML to the Colorado timber line API. But due to the order protocol of the Colorado timber line API, it is required to modify the XML posted by ...
1
vote
0answers
20 views

XML processing, hopefully avoiding explicit arguments

I'm stuck trying to refactor code below into one that would be reusable in different contexts. I would like to print another triple, for "parent" sub-tree but without explicitly passing lens to each ...
2
votes
1answer
39 views

Simplify XML parsing using HXT

Here is code that will output maven coordinates from given pom.xml file. How can I remove boilerplate (possibly convert it to xml picklers)? ...
2
votes
2answers
77 views

Camel Case strings in XSLT

I have a situation where I am receiving data from a web service and the data is in all caps. I have to convert to HTML and format for display. In this case, we need the string to be normalized. The ...
2
votes
0answers
23 views

URL fetcher and parser for XML feeds

Here is a program that will parse and print XML feed URLs. I want to reuse most of it to add post date to each link. This adds a new concern of CLI and output formatting on top of parsing and (poor) ...
1
vote
1answer
166 views

Search layout with 2 edittext and 2 buttons

I'm building an Android app and I'm new on building the UI on an .xml file. I've built a simple layout but I think that is not optimize very well. This component is a search layout with 2 edittext ...
6
votes
2answers
111 views

Loading card data from XML file

For our Cardshifter Project we wanted to be able to load card definitions from file. A card is defined as: Having an unique id. Having a set of resources, which are integers identified by a string. ...
1
vote
2answers
143 views

Customizing color for the navbar of my Android app

I got my navigation bar to be the color I want of Blue background with white text. Here is my code which works but this feels totally hacky. Please suggest improvements styles.xml ...
3
votes
1answer
143 views

XML Writer in C++ - Updated

I recently posted about a basic XML writer in C++ and got a lot of great feedback. Well, I'm back with an updated version of the XML writer that is a bit less basic, but hope it's better than the ...
3
votes
0answers
89 views

Parsing small sets of data from a large XML using XMLReader [closed]

Suppose I have a lot of large XMLs I want to parse data from and each of these can range in size from 10MB to well over 300MB. Now, I only need a small sub-set of data from a few specific keys. For ...
6
votes
4answers
791 views

Basic XML Writer in C++

This is an XML Writer in C++. It doesn't do much but the basics, and I've tested it, so it should hold up well enough. I hope in the near future, I can bring you an XML Reader. I kinda built the ...
1
vote
0answers
147 views

Drop-down list with 14 options of RSS feed dates

The goal of this code is to create drop-down menu where there are 14 options on the list. Those 14 options are the dates that an RSS feed were last updated. The URLs for the feed have the query ...
4
votes
1answer
30 views

Finding the next XML element

I am looking for a better way to do a while cycle with the variable update. The background is that I'm writing a StAX-line XML reader in JavaScript and want to ...
1
vote
2answers
159 views

Improving performance on file reading

I got a small assignment to read IP adresses and from a bunch of external text files identify which country the IP adress comes from.. I opted to use XmlReader and read the ranges from an XML file but ...
-3
votes
1answer
70 views

How to make this xml query shorter [closed]

I spent 3 days to read this xml file and put the details in to the database. It works the way it should be but I know the way i read this xml file is not the proper way. Can you please show me how to ...
6
votes
4answers
377 views

Extracting key information from a directory of XML files

I have written some VBA to loop through a directory of 15,000 XML files and extract key information from these files into Excel - this is unbearably slow. Can someone please assist me in optimising ...
7
votes
1answer
269 views

Object-to-XML string implementation

I have recently implemented a code to accomplish Object-to-String. Can you suggest any pros and cons with regard to the code? ...
3
votes
1answer
113 views

Dirty XML-to-JSON parser

I have that XML-to-JSON function based on ElementTree. It looks very simple but until now it does what it's supposed to do: give a JSON description of the ...
2
votes
1answer
526 views
3
votes
1answer
302 views

Validate XML using XSD, a Catalog Resolver, and JAXP DOM for XSLT

Background As this related question describes, there does not appear to be a canonical way to validate XML files against an XSD then subsequently transform them using an XSL template with file paths ...
1
vote
0answers
151 views

Propel ORM Schema Builder

I've worked out my Schema Builder for Propel. In short: I've created a class that can be used to create the 'schema.xml' for building a database for propel dynamically, because I need this for another ...
7
votes
1answer
209 views

Android “Search” Activity and corresponding XML

Below is an Android Activity and corresponding XML layout. The function of the class is to search an ...
5
votes
2answers
43 views

Adding credentialsID node to SVN location nodes

I'm new to ruby. Recently I wrote a script to add a credentialsID node to each SVN location node in each config.xml file for all ...
6
votes
1answer
78 views

File validator configured using XML

I am making an application to check for any files that does not follow a specific pattern defined in a XML file. The application works well, but the source code is not the greatest, and memory ...
3
votes
1answer
39 views

CLI Command Search Tool - XML Framework

I'm working on the OSCP, and Information Security certificate based around penetration testing. CLI-based tools seem to be the core of most pen-testing assignments, so I'd like to build a tool aiding ...
7
votes
3answers
154 views

Too many null checks in an XML-to-XML transformation

I'm writing a conversion mechanism in C#. I deserialize a big XML document of one type and return a big XML document of another type (via serialization of another object). While I'm doing the ...
2
votes
2answers
309 views

Different Approach to the following ASP.NET Web API Action

Maybe someone here can help me sort out this implementation and make it better. First the following constraints: 1 Controller & Action that accepts all post requests, these post requests will ...
1
vote
1answer
127 views

Improving iterative manipulation on XML elements

In this reply, there's an example of how to remove a node from a XML structure. ...
5
votes
1answer
1k views

Single Sign On - SAML Response generation

I am trying to implement a IDP initiated Single Sign On Solution (service similar to onelogin's) to Cloud based Service providers such as Google Apps, Salesforce etc. The project is a Maven eclipse ...