473,324 Members | 2,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

design question

hi!

I am trying to write an application, say myapp, which does some xml
processing and then interacts with another application, say app2.
App2 is in Python and i can't change it.

The problem is that both my app and app2 must work on a pocket pc. I could
write myapp in Python but the python WinCE release does not have the
pyexpat parser and i cant find any other fast xml processor for a PDA.
There is a python only processor but that is way too slow.
my options as i see it are:

1. write myapp in c, compile to a dll using embedded visual c++ and write a
python wrapper around it, which then interacts with app2. The problem here
is again the parser. i am not writing my own, i don't know if msxml can
work on a PDA. Has anyone been down this road before. if yes, i'd love to
hear how you went about it and any suggestions you may have.

2. compile expat for pda using evc. the trouble is i myapp will use DOM and
expat is event driven. i will need to write code to build the whole DOM
hierarchy.

3. try and port the PyXML package to the PDA along with expat. A daunting
task and not one that i think i can achieve.

4. use c#.net to write myapp, compile to dll and then call from python. i
am not sure if this will work. i could alternatively use python.net but i
am not sure if that will work on the PDA.

and that exhausts the list of options i have.
i would really very much appreciate it if you could reply with any
alternatives that i could pursue or how i can go about implementing one of
the options above.

thanks

cheers

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Jul 18 '05 #1
3 1355
[Ajay]
I am trying to write an application, say myapp, which does some xml
processing and then interacts with another application, say app2.
App2 is in Python and i can't change it.


Show us a couple of simple examples of the type of XML processing you
need to do.

There may be simple ways to achieve your goals that don't actually
require an XML parser at run time, or that would be efficient enough
given a pure python parser/etc. It depends heavily on what type of XML
processing you're doing.

--
alan kennedy
------------------------------------------------------
email alan: http://xhaus.com/contact/alan
Jul 18 '05 #2
hi!

there is a W3 standard for expressing privacy policies called P3P. what my
application needs to do is to examine a privacy policy defined by a
service against user preferences for privacy expressed using APPEL.
so eg: my privacy policy could say what sort of data i collect, whats its
used for, how long its kept, whether identifying data is taken, who all
can access the data and so on.
the user can define his preferences as a set of rules. eg: rule 1 may say
dont allow any site that wants my name. rule2 may say block any sites that
take idenitfying data. rule3 may say allow all sites under the domain
www.w3.org. rule4 may say prompt me everytime a service wants data that is
kept for more than 3 days. and so on....

there are a number of p3p user agents that do this. explorer has one i
believe. ibm have something called privacy bird.

so thats what i need to do. i read the policy and preferences as DOM
hierarchies and then starting from rule1 in the preference, i examine it
against the policy.

i have already got it done in python (it was a matter of reimplementing the
evaluator written in Java by an organization called the Joint Research
Centre) and it works fine on a pc. the trouble is using it in a PDA.

cheers
Quoting Alan Kennedy <al****@hotmail.com>:
[Ajay]
I am trying to write an application, say myapp, which does some xml
processing and then interacts with another application, say app2.
App2 is in Python and i can't change it.


Show us a couple of simple examples of the type of XML processing you
need to do.

There may be simple ways to achieve your goals that don't actually
require an XML parser at run time, or that would be efficient enough
given a pure python parser/etc. It depends heavily on what type of XML
processing you're doing.

--
alan kennedy
------------------------------------------------------
email alan: http://xhaus.com/contact/alan
--
http://mail.python.org/mailman/listinfo/python-list

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Jul 18 '05 #3
Ajay wrote:
so thats what i need to do. i read the policy and preferences as DOM
hierarchies and then starting from rule1 in the preference,


Do you really need a DOM representation for this? It seems to me that
you are sequentially reading the XML file to extract the
rules from it.

Try element-tree for a simple and fast, pure-python XML representation.

http://effbot.org/zone/element-index.htm

Istvan.
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Don Vaillancourt | last post by:
Hello all, Over the years as I design more database schemas the more I come up with patterns in database design. The more patterns I recognize the more I want to try to design some kind of...
9
by: sk | last post by:
I have an applicaton in which I collect data for different parameters for a set of devices. The data are entered into a single table, each set of name, value pairs time-stamped and associated with...
2
by: Test User | last post by:
Hi all, (please excuse the crosspost as I'm trying to reach as many people as possible) I am somewhat familiar with Access 2000, but my latest project has me stumped. So, I defer to you...
6
by: rodchar | last post by:
Hey all, I'm trying to understand Master/Detail concepts in VB.NET. If I do a data adapter fill for both customer and orders from Northwind where should that dataset live? What client is...
17
by: tshad | last post by:
Many (if not most) have said that code-behind is best if working in teams - which does seem logical. How do you deal with the flow of the work? I have someone who is good at designing, but...
17
by: roN | last post by:
Hi, I'm creating a Website with divs and i do have some troubles, to make it looking the same way in Firefox and IE (tested with IE7). I checked it with the e3c validator and it says: " This...
6
by: JoeC | last post by:
I have a question about designing objects and programming. What is the best way to design objects? Create objects debug them and later if you need some new features just use inhereitance. Often...
0
by: | last post by:
I have a question about spawning and displaying subordinate list controls within a list control. I'm also interested in feedback about the design of my search application. Lots of code is at the...
19
by: neelsmail | last post by:
Hi, I have been working on C++ for some time now, and I think I have a flair for design (which just might be only my imagination over- stretched.. :) ). So, I tried to find a design...
8
by: indrawati.yahya | last post by:
In a recent job interview, the interviewer asked me how I'd design classes for the following problem: let's consider a hypothetical firewall, which filters network packets by either IP address,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.