233 Topics

Member Avatar for
Member Avatar for TheWolverine

Hi all, I've browsed the net trying to find a paradigm to describe what I'm looking for but haven't been successful. So I'll try to explain it as succinctly as I can. Right now, for my PhD research, I've set out a few applications that take input files that have …

Member Avatar for TheWolverine
0
236
Member Avatar for bleedi

Hi guys and gals, I'm writing a file parser, which reads "source code -ish" text from files. The text is usually in this kind of format: Module: { Submodule: { Property: Value ... } Submodule: { } } Module: { Property: Value } I've written a simple but hazardous reader …

Member Avatar for Ketsuekiame
0
630
Member Avatar for c.pentasuglia

I'm trying to parse an XML file in Java using the XOM library. Where i'm running into an issue is when i hit nested elements. So in XOM you start with a root node, and i am able to parse the attributes out of that root node, and the three …

Member Avatar for ~s.o.s~
0
113
Member Avatar for c.pentasuglia

Hey all, I need to get a design going to parse some XML files, in the past i have used XStream to parse files, however it doesn't appear to be working in this case. Here is a sample of the generated XML i'm trying to parse: <debugging level="0" /> XStream …

0
78
Member Avatar for c.pentasuglia

Hey all, I need to get a design going to parse some XML files, in the past i have used XStream to parse files, however it doesn't appear to be working in this case. Here is a sample of the generated XML i'm trying to parse: <debugging level="0" /> When …

0
107
Member Avatar for skat123

Getting the following error while running the website script Parse error: parse error, expecting `';'' in F:\xampp 1.7.1\xampp\htdocs\engine\includes\functions.php on line 23 Please help to solve this. Here is the coding of functions.php from line 1 till end function paging( $frontUrl, $backUrl, $currentPage, $rowsPerPage, $allRows ) { global $langArray; if ( …

0
99
Member Avatar for pattmorter

Hey everyone. I was learning how to make a simple content system for my website today and I was following along the code at [css-tricks.com](http://css-tricks.com/php-for-beginners-building-your-first-simple-cms/) and when I was all finished, I got this error saying: `Parse error: syntax error, unexpected $end in /home/gosports/public_html/gsbadmin/_class/simpleCMS.php on line 107` I read up …

Member Avatar for diafol
0
165
Member Avatar for calebcook

Hi. I have been working on a project that displays data in an XML file. (It's kind of like an API). I know how to parse XML with PHP, and how to make an XML file in PHP, but they don't work together. :) Basically, I have two files: `parse.php` …

Member Avatar for Incognitus
0
226
Member Avatar for fiaworkz

I am developing a program that gets the html source code of a certain webpages in a website. I already developed one program that does so, here's the sample code Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create(TextBox2.Text) Dim response As System.Net.HttpWebResponse = request.GetResponse() Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream()) Dim …

0
81
Member Avatar for melaki

Hi all, After spending 2 days going through this code, going through search engines and endless forums trying to find a solution, i find myself still on Square 1. Therefore just before I begin hitting my head against the wall (have pity on the poor wall) I thought I'd give …

Member Avatar for |-|x
0
176
Member Avatar for jamojo

Array ( [TIMESTAMP] => 2012%2d05%2d01T17%3a19%3a07Z [CORRELATIONID] => 3aeb192ad6388 [ACK] => Failure [VERSION] => 51%2e0 [BUILD] => 2764190 [L_ERRORCODE0] => 10527 [L_SHORTMESSAGE0] => Invalid%20Data [L_LONGMESSAGE0] => This%20transaction%20cannot%20be%20processed%2e%20Please%20enter%20a%20valid%20credit%20card%20number%20and%20type%2e [L_SEVERITYCODE0] => Error [AMT] => 10%2e00 [CURRENCYCODE] => GBP ) Hello everyone, Can you please suggest on how to parse responses? It is the …

Member Avatar for diafol
0
176
Member Avatar for Johannady2

/*This code counts the vowels in strings? It has to use user defined methods: */ import java.lang.String; import java.io.*; import java.util.*; public class vowelConsonant2 { static Scanner scan = new Scanner(System.in); public static void main(String args[]) { String text; int actualI, actualC; System.out.println("Enter the String:"); text = scan.nextLine(); System.out.println("There are …

Member Avatar for NormR1
0
275
Member Avatar for James19142

i'm making this function that replaces single slashes in a path with doubles slashes. It works for everything but slashes because I gotta use doubleslashes to specify a single slash so how do I refer to double slashes. QString AddDoubleSlashtoPath(QString Path){ QStringList splitup=Path.split("//") ;/*supposed to be a single slash*/ QString …

Member Avatar for triumphost
0
1K
Member Avatar for TrustyTony

Here is an amazing article. Peter Norvig does not let small detail, that the language was never implemented in it's time, disturb his debugging the code written without implementation, but single handedly implements it with Python parser. Frustration warning, this is frustratingly amazing stuff: [Prescient but Not Perfect: A Look …

0
408
Member Avatar for midnightparade

Hi I'm new to python and this forum and I am trying to work on a program that splits the html text file into its components: The HTML file looks something like this: " Hello World #title Today is a Friday. The weekend is coming. Lets have fun. #summary 1923 …

Member Avatar for bumsfeld
0
227
Member Avatar for kernel>panic

I wrote an XML parser that works great to fit my needs, but I can't retrieve the root attribute nodes no matter what I try! So far I have the following code that works great to retrieve the child tag values: import xml.dom.minidom def parse(filename): xmlDoc = xml.dom.minidom.parse(filename) tag = …

0
121
Member Avatar for diamondfist

I want to load a 3D model into an opengl scene. For this I've read about the .obj format and how the vertex cord's and etc are stored. I want to parse this file, but have completely no idea what soever how to begin with. After going through couple of …

Member Avatar for Alkane
0
206
Member Avatar for danielsikes

Hi, I am in need of parsing some html code. Here is an example of what I am trying to do, but not quite sure how to do it. [CODE] <tbody><tr> <td>1.</td> <td><a href="something.php?y=US&amp;id=197003">Some Name Here</a></td> <td>City, STATE</td> <td class="noWrap"></td> <td class="noWrap">123-456-7890</td></tr><tr class="altRow"> <td>2.</td> <td><a href="something.php?y=US&amp;id=113762">Another Name</a></td> <td>City, STATE</td> <td …

Member Avatar for danielsikes
0
131
Member Avatar for ThomsonGB

I am trying to parse main(argc, argv[]); and i need to look at individual characters with in the strings pointed to by *argv[]. I though of a string as an array of chars. This builds fine but causes an error in execution. So what is a simple and straight forward …

Member Avatar for ThomsonGB
0
1K
Member Avatar for jumboora

Hi, I want to process a text file. Here are the contents of the text file labels 1 -1 -1 0.2988 0.7012 -1 0.188161 0.811839 -1 0.0824541 0.917546 1 0.579515 0.420485 -1 0.0965063 0.903494 -1 0.174624 0.825376 -1 0.0404312 0.959569 -1 0.0770909 0.922909 -1 0.12001 0.87999 1 0.778388 0.221612 In …

Member Avatar for jumboora
0
257
Member Avatar for diafol

If new DW is being rolled out shortly, perhaps I'm too late. I've found the auto parse urls to be a massive pain. The editor can either be basic or standard (can it be set to Advanced Editor??), meaning that if I want to display a url as text I …

Member Avatar for diafol
0
340
Member Avatar for rfrapp

This is the beginnings of a login script that I've been working on, and I can't seem to figure out why I have this error. The error is said to be on line 10. Any help would be appreciated. I've changed the info in the variables used for connection just …

Member Avatar for diafol
0
425
Member Avatar for zackh123

Hello, I am currently helping my BI team convert a Cognos Tree Object into a Javascript tree object. The part where I am stuck is using javascript to parse the XML data file that would normally fill up the Cognos tree. Here is an example of the XML data file... …

Member Avatar for Troy III
0
502
Member Avatar for akashbarot51

i am doing connectivity of one form of my project website. and i am facing following kind of error. please can you help me. i have tried to solve. but not getting idea exactly. the error is Parse error: syntax error, unexpected ';' in C:\wamp\www\PROJECT\feed_data.php on line 15 <?PHP $con=mysql_connect("localhost","root",""); …

Member Avatar for pritaeas
0
135
Member Avatar for vijiraghs

My requirement is to parse through a HTML document ( which will be an article) and come up with a few keywords which describe what the document is about. For example, if a professor writes an essay about say, information security; i want to parse this HTML document and come …

Member Avatar for vijiraghs
0
199
Member Avatar for maddocspace

I have written this short code [CODE] import os import os.path import string import shutil import difflib Path = 'C:/RESULT/BATCH/SimpleInputParser/' SecPoint = [] FullList = [] newFile = [] for fileName in os.listdir(Path): if fileName.endswith(".inp"): f=open(Path + fileName, 'r') files = f.readlines() f.close() fp_clean = open(Path + "tempClean.inp", "w") fp_newFile …

Member Avatar for maddocspace
0
294
Member Avatar for rapidwein

<html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="Raphael.js"></script> <script type="text/javascript"> <?php include("class.logger.php"); //path to class.logger.php file $log = new logger(); //Instentiate the class $log->dbconnect(); //connect to database //pass the name of the table as the parameter. I.e. 'logger" $log->createtable('logger'); //set date and year text for the info bubble that appears …

Member Avatar for broj1
0
219
Member Avatar for dashawk

Hi guys, I have a project that reads a json data and parse it. The program is working properly except that I cannot get its individual rows and view it in separate panels. Here is my code: [CODE] Imports System.Net.Json Public Class Form2 Private Sub Button1_Click(ByVal sender As System.Object, ByVal …

Member Avatar for dashawk
0
256
Member Avatar for Warl30ck

I'm trying to write a blog and this comes up : Parse error: syntax error, unexpected '<' in C:\wamp\www\Blog\index.php on line 65 the code: [CODE] $query = "SELECT id, header, body, views FROM information"; $result = mysql_query($query); while($row = mysql_fetch_row($result)) { print "<div class=section odd>"; print "<a href=images/riverside.jpg><img src=images/riverside.jpg /></a>"; …

Member Avatar for pritaeas
0
136
Member Avatar for tcl76

hi, i would like to parse an input file (input.txt) into output file (output.txt) which i'll into excel. appreciate any advice on how to parse the input.txt into output.txt. thanks johnny

Member Avatar for tcl76
0
219

The End.