python minidom xml parser 3

<student id="1" student:name="robert"> <sectionA> <class name="first"/> </sectionA> </student> <student id="2" student:name="lucky"> <sectionB> <class name="first"/> </sectionB> </stude...
more »

2017-06-20 14:06 (1) Answers

Parsing data from json in C#

I successfully got data to var content The code how I did it: public async void FetchAsync() { var client = new RestClient("http://api.locopal.com"); var request = new RestRequest("/countries", Method.POST); var response = client.Execute...
more »

2017-06-04 20:06 (2) Answers

scanf(), field width, inf and nan

Per the C standard from 1999, scanf() and strtod() should accept infinity and NaN as inputs (if supported by the implementation). The descriptions of both functions have peculiar language, which may be open to interpretations. scanf(): An input...
more »

2017-06-04 13:06 (2) Answers

Eclipse JDT: AST or SearchEngine

I'm developing a tool to detect accessibility defects in Android applications by parsing the source code. To parse the XML UI layouts of the app I'm using Java's SAX XML parser. This gives me access to the individual elements and its attributes, and...
more »

2017-06-03 03:06 (0) Answers

Search for 10 consecutive single digits

I have a lady at work who sends me phone numbers. They are sent in a messy manner. EVERY TIME. so I want to copy her entire message from Skype and have a batch file parse the saved .txt file, searching only for 10 consecutive digits. e.g she sends m...
more »

2017-05-23 14:05 (4) Answers

How to parse multiple integers

So I want to parse multiple integers by dividing them by , or space. Let's say user is only allowed to enter 4 numbers max. So how do I make multiple check if user enters for instance ( 1 2 4 3 ) or (1 2 3)? Because it would be not smart to make chec...
more »

2017-05-14 12:05 (1) Answers

Get anchor tag HREF and VALUE

I have a string that looks like this: <a href="http://forum.tibia.com/forum/?action=board&boardid=476">Amera</a><br><font class="ff_info">This board is for general discussions related to the game world Amera.</font>...
more »

2017-05-14 03:05 (2) Answers

Convert string to json doesn't work java

I have a problem with convert string to json. Namely, my json string is: {"serverId":2,"deviceId":736,"analysisDate":"2017-05-11T07:20:27.713Z","eventType":"Logs","eventAttributes":[{"name":"level","value":"INFO"},{"name":"type","value":"Video Block...
more »

2017-05-11 07:05 (2) Answers

Take a string, turn it into some DB commands (C#)

I need to write something in C# that allows users to query data in a human-readable format. So in a textarea, they would type in this: Students.Class, name, address, classid, grade Which would result in: Marcus, 11B Westbury Ave. 200718, A+ Wha...
more »

2017-05-07 08:05 (1) Answers

Could not parse the remainder: '{{' from '{{'

I'm trying to create a simple page, which should display a table. It suppose to have several rows and columns. But not every row should have the same amount of columns. this my html code which is producing an error: <html> {% for count in m...
more »

2017-05-05 18:05 (2) Answers

Parsing xml File with elisp

I have a xml file with this xml: <?xml version="1.0" encoding="UTF-8"?> <trials> <trial> <main> <trial_id>RBR-3ypfxv</trial_id> <utrn>U1111-1191-5058</utrn> <reg_name>...
more »

2017-05-05 15:05 (1) Answers

python, beautiful soup, xml parsing

How can I get values of latitude and longitude from the following XML: <?xml version="1.0" encoding="utf-8"?> <location source="FoundByWifi"> <coordinates latitude="49.7926292" longitude="24.0538406" nlatitude="49.7935180" nlongitude...
more »

2017-05-01 19:05 (2) Answers

Parsing .csv file into 2D array in C

I have a .csv file that reads like: SKU,Plant,Qty 40000,ca56,1245 40000,ca81,12553.3 40000,ca82,125.3 45000,ca62,0 45000,ca71,3 45000,ca78,54.9 Note: This is my example but in reality this has about 500,000 rows and 3 columns. I am trying to conv...
more »

2017-04-26 23:04 (0) Answers

Check every value of an ElementTree

I'm parsing XML with ElementTree in python and I have to check if every float in my tree are with "," instead of "." but I don't know how reach every child of my tree which is created from a +100K line of xml so very big. it's a very short sample bu...
more »

2017-04-25 09:04 (1) Answers

JSON Array to Int array in Swift

I'm doing a http request and result returns a JSON array which contains Int values and I like to assign it to my integer array. I'm using below code but anItem prints all values not just one. let jsonResult = json[0]["value1"] for anItem ...
more »

2017-04-21 17:04 (1) Answers