Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Merging two XML files (with conflicts)

by CountZero (Bishop)
on Feb 07, 2012 at 10:47 UTC ( [id://952243]=note: print w/replies, xml ) Need Help??


in reply to Re: Merging two XML files (with conflicts)
in thread Merging two XML files (with conflicts)

I think you have hit a major problem here.

Actually you can avoid changing/updating existing records, if you have a well established protocol for adding and deleting.

Changing/updating then becomes a simple "delete this and add that" operation. But that is something which the "patch" file is ambiguous about. The way it is now, it can only be reliably used to add data, not to delete, nor change ("patch") existing data.

What tells me that "patched text 1" should replace "text 1" and not simply be an additional <NODED> within <NODEC name="1">?

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://952243]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (2)
As of 2024-04-19 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found