|
Go
![]() |
New
![]() |
Search
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Platinum Member |
I have a master file for xml that needs to look like this --
SEGMENT=CLIENT, SEGTYPE=S0, PARENT=HIVFORM, $ FIELDNAME=CLIENT, ALIAS=Client, USAGE=A1, ACTUAL=A1, REFERENCE=HIVFORM, PROPERTY=ELEMENT, $ FIELDNAME=PERSONID, ALIAS=personId, USAGE=A10, ACTUAL=A10, REFERENCE=CLIENT, PROPERTY=ELEMENT, $ FIELDNAME=BIRTHYEAR, ALIAS=birthYear, USAGE=YY, ACTUAL=A10, MISSING=ON, REFERENCE=CLIENT, PROPERTY=ELEMENT, $ FIELDNAME=STATEOFRESIDENCE, ALIAS=stateOfResidence, USAGE=A10, ACTUAL=A10, MISSING=ON, REFERENCE=CLIENT, PROPERTY=ELEMENT, $ FIELDNAME=ETHNICITY, ALIAS=ethnicity, USAGE=A10, ACTUAL=A10, MISSING=ON, REFERENCE=CLIENT, PROPERTY=ELEMENT, $ SEGMENT=RACES, SEGTYPE=S0, PARENT=CLIENT, $ FIELDNAME=RACES, ALIAS=races, USAGE=A1, ACTUAL=A1, REFERENCE=CLIENT, PROPERTY=ELEMENT, $ SEGMENT=RACE, SEGTYPE=S0, PARENT=RACES, $ FIELDNAME=RACE, ALIAS=race, USAGE=A1, ACTUAL=A1, REFERENCE=RACES, PROPERTY=ELEMENT, $ FIELDNAME=RACEVALUECODE, ALIAS=raceValueCode, USAGE=A10, ACTUAL=A10, REFERENCE=RACE, PROPERTY=ELEMENT, $ FIELDNAME=RACEID, ALIAS=raceId, USAGE=A1, ACTUAL=A1, MISSING=ON, REFERENCE=RACE, PROPERTY=ATTRIBUTE, $ FIELDNAME=CURRENTGENDERVALUECODE, ALIAS=currentGenderValueCode, USAGE=A10, ACTUAL=A10, MISSING=ON, REFERENCE=CLIENT, PROPERTY=ELEMENT, $ FIELDNAME=OTHERCURRENTGENDER, ALIAS=otherCurrentGender, USAGE=A15, ACTUAL=A15, MISSING=ON, REFERENCE=CLIENT, PROPERTY=ELEMENT, $ FIELDNAME=BIRTHGENDERVALUECODE, ALIAS=birthGenderValueCode, USAGE=A10, ACTUAL=A10, MISSING=ON, REFERENCE=CLIENT, PROPERTY=ELEMENT, $ Note that the RACES segment is in the middle of the CLIENT segment -- the last three fields specified belong to the CLIENT parent, not RACES or its children. When I run DM against this those last three fields do not appear -- they are ignored. How do I get DM to pick up where it left off on the CLIENT segment? Is there a way to separate the fields defined for a specific segment into two different locations, and have them process properly to the output? What this essentially means ins that any individual elements in the xml that follow a structure are lost -- an exceptionally common occurrence in xml specifications. J. This message has been edited. Last edited by: John_Edwards, |
||
|
|
Platinum Member |
"WILL NO ONE RID ME OF THIS MEDDLESOME PRIEST???"
-- Henry II |
|||
|
|
Master |
Are you coding this manually? Why? I would start with the synonym that iWay generates, let iWay reflect the xml structure in Focus terms, and then modify field formats as needed.
I don't think the order of declaration of FIELDs in the MFD is expected to match that in the xml declarations. Basically, an MFD lists the structure breadth-first, whereas DTD may go depth-first. A segment should account for all items that occur togather at a given level, ignoring "interruptions" for describing its descendents. - Jack Gross WF 7.6.7, Win |
|||
|
|
Platinum Member |
I owe you a beer, but not for the reason you may think. The hand-crafted master file I show above worked correctly for 7.6.1, but not for 7.6.5 which I recently upgraded to. But! you got me to realize that in the hand-craft process performed previously I had made several additional changes (other than hierarchical structure) that could conceivably be made to the 7.6.5 version of the auto-generated master file. That is, I needed a hybrid of my existing version and the new version the I-Way produces on its own. When I took the time to correct the field formats and Access_Property items that were poorly formed I was able to produce a correct result. Yippee! Thank you very much for taking the time to respond -- your choice of words seemed to miss the mark at first, but upon reconsideration pointed right at the heart of my problem. Fixed this crisis one hour before going on vacation too. What a deal! J. |
|||
|
|
Master |
Glad to be of help. Enjoy!
(We can discuss delivery options for the brew when you return.) -jg - Jack Gross WF 7.6.7, Win |
|||
|
| Previous Topic | Next Topic | powered by eve community |
| Please Wait. Your request is being processed... |
|

