1 /* c/zx-hrxml-dec.c - WARNING: This file was auto generated by xsd2sg.pl. DO NOT EDIT! 2 * $Id$ */ 3 /* Code generation design Copyright (c) 2006 Sampo Kellomaki (sampo@iki.fi), 4 * All Rights Reserved. NO WARRANTY. See file COPYING for terms and conditions 5 * of use. Some aspects of code generation were driven by schema 6 * descriptions that were used as input and may be subject to their own copyright. 7 * Code generation uses a template, whose copyright statement follows. */ 8 9 /** dec-templ.c - XML decoder template, used in code generation 10 ** Copyright (c) 2010 Sampo Kellomaki (sampo@iki.fi), All Rights Reserved. 11 ** Copyright (c) 2006-2007 Symlabs (symlabs@symlabs.com), All Rights Reserved. 12 ** Author: Sampo Kellomaki (sampo@iki.fi) 13 ** This is confidential unpublished proprietary source code of the author. 14 ** NO WARRANTY, not even implied warranties. Contains trade secrets. 15 ** Distribution prohibited unless authorized in writing. 16 ** Licensed under Apache License 2.0, see file COPYING. 17 ** Id: dec-templ.c,v 1.30 2008-10-04 23:42:14 sampo Exp $ 18 ** 19 ** 28.5.2006, created, Sampo Kellomaki (sampo@iki.fi) 20 ** 8.8.2006, reworked namespace handling --Sampo 21 ** 12.8.2006, added special scanning of xmlns to avoid backtracking elem recognition --Sampo 22 ** 23.9.2006, added collection of WO information --Sampo 23 ** 21.6.2007, improved handling of undeclared namespace prefixes --Sampo 24 ** 27.10.2010, CSE refactoring, re-engineered namespace handling --Sampo 25 ** 21.11.2010, re-engineered to extract most code to zx_DEC_elem, leaving just switches --Sampo 26 ** 27 ** N.B: This template is meant to be processed by pd/xsd2sg.pl. Beware 28 ** of special markers that xsd2sg.pl expects to find and understand. 29 **/ 30 31 #include "errmac.h" 32 #include "zx.h" 33 #include "c/zx-const.h" 34 #include "c/zx-data.h" 35 #include "c/zx-hrxml-data.h" 36 #define TPF zx_ 37 #include "zx_ext_pt.h" 38 39 40 41 int zx_DEC_ATTR_hrxml_AccountingCode(struct zx_ctx* c, struct zx_hrxml_AccountingCode_s* x) 42 { 43 switch (x->gg.attr->g.tok) { 44 case zx_description_ATTR: x->description = x->gg.attr; return 1; 45 46 default: return 0; 47 } 48 } 49 50 int zx_DEC_ELEM_hrxml_AccountingCode(struct zx_ctx* c, struct zx_hrxml_AccountingCode_s* x) 51 { 52 struct zx_elem_s* el = x->gg.kids; 53 switch (el->g.tok) { 54 55 default: return 0; 56 } 57 } 58 59 60 61 62 int zx_DEC_ATTR_hrxml_Achievement(struct zx_ctx* c, struct zx_hrxml_Achievement_s* x) 63 { 64 switch (x->gg.attr->g.tok) { 65 66 default: return 0; 67 } 68 } 69 70 int zx_DEC_ELEM_hrxml_Achievement(struct zx_ctx* c, struct zx_hrxml_Achievement_s* x) 71 { 72 struct zx_elem_s* el = x->gg.kids; 73 switch (el->g.tok) { 74 case zx_hrxml_Date_ELEM: 75 if (!x->Date) 76 x->Date = el; 77 return 1; 78 case zx_hrxml_Description_ELEM: 79 if (!x->Description) 80 x->Description = (struct zx_hrxml_Description_s*)el; 81 return 1; 82 case zx_hrxml_IssuingAuthority_ELEM: 83 if (!x->IssuingAuthority) 84 x->IssuingAuthority = (struct zx_hrxml_IssuingAuthority_s*)el; 85 return 1; 86 87 default: return 0; 88 } 89 } 90 91 92 93 94 int zx_DEC_ATTR_hrxml_Achievements(struct zx_ctx* c, struct zx_hrxml_Achievements_s* x) 95 { 96 switch (x->gg.attr->g.tok) { 97 98 default: return 0; 99 } 100 } 101 102 int zx_DEC_ELEM_hrxml_Achievements(struct zx_ctx* c, struct zx_hrxml_Achievements_s* x) 103 { 104 struct zx_elem_s* el = x->gg.kids; 105 switch (el->g.tok) { 106 case zx_hrxml_Achievement_ELEM: 107 if (!x->Achievement) 108 x->Achievement = (struct zx_hrxml_Achievement_s*)el; 109 return 1; 110 111 default: return 0; 112 } 113 } 114 115 116 117 118 int zx_DEC_ATTR_hrxml_AffirmativeActionPlanJobGroupId(struct zx_ctx* c, struct zx_hrxml_AffirmativeActionPlanJobGroupId_s* x) 119 { 120 switch (x->gg.attr->g.tok) { 121 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 122 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 123 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 124 125 default: return 0; 126 } 127 } 128 129 int zx_DEC_ELEM_hrxml_AffirmativeActionPlanJobGroupId(struct zx_ctx* c, struct zx_hrxml_AffirmativeActionPlanJobGroupId_s* x) 130 { 131 struct zx_elem_s* el = x->gg.kids; 132 switch (el->g.tok) { 133 case zx_hrxml_IdValue_ELEM: 134 if (!x->IdValue) 135 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 136 return 1; 137 138 default: return 0; 139 } 140 } 141 142 143 144 145 int zx_DEC_ATTR_hrxml_Affix(struct zx_ctx* c, struct zx_hrxml_Affix_s* x) 146 { 147 switch (x->gg.attr->g.tok) { 148 case zx_type_ATTR: x->type = x->gg.attr; return 1; 149 150 default: return 0; 151 } 152 } 153 154 int zx_DEC_ELEM_hrxml_Affix(struct zx_ctx* c, struct zx_hrxml_Affix_s* x) 155 { 156 struct zx_elem_s* el = x->gg.kids; 157 switch (el->g.tok) { 158 159 default: return 0; 160 } 161 } 162 163 164 165 166 int zx_DEC_ATTR_hrxml_AlternateScript(struct zx_ctx* c, struct zx_hrxml_AlternateScript_s* x) 167 { 168 switch (x->gg.attr->g.tok) { 169 case zx_script_ATTR: x->script = x->gg.attr; return 1; 170 171 default: return 0; 172 } 173 } 174 175 int zx_DEC_ELEM_hrxml_AlternateScript(struct zx_ctx* c, struct zx_hrxml_AlternateScript_s* x) 176 { 177 struct zx_elem_s* el = x->gg.kids; 178 switch (el->g.tok) { 179 case zx_hrxml_FormattedName_ELEM: 180 if (!x->FormattedName) 181 x->FormattedName = el; 182 return 1; 183 case zx_hrxml_LegalName_ELEM: 184 if (!x->LegalName) 185 x->LegalName = el; 186 return 1; 187 case zx_hrxml_GivenName_ELEM: 188 if (!x->GivenName) 189 x->GivenName = el; 190 return 1; 191 case zx_hrxml_PreferredGivenName_ELEM: 192 if (!x->PreferredGivenName) 193 x->PreferredGivenName = el; 194 return 1; 195 case zx_hrxml_MiddleName_ELEM: 196 if (!x->MiddleName) 197 x->MiddleName = el; 198 return 1; 199 case zx_hrxml_FamilyName_ELEM: 200 if (!x->FamilyName) 201 x->FamilyName = (struct zx_hrxml_FamilyName_s*)el; 202 return 1; 203 case zx_hrxml_Affix_ELEM: 204 if (!x->Affix) 205 x->Affix = (struct zx_hrxml_Affix_s*)el; 206 return 1; 207 208 default: return 0; 209 } 210 } 211 212 213 214 215 int zx_DEC_ATTR_hrxml_Area(struct zx_ctx* c, struct zx_hrxml_Area_s* x) 216 { 217 switch (x->gg.attr->g.tok) { 218 case zx_type_ATTR: x->type = x->gg.attr; return 1; 219 220 default: return 0; 221 } 222 } 223 224 int zx_DEC_ELEM_hrxml_Area(struct zx_ctx* c, struct zx_hrxml_Area_s* x) 225 { 226 struct zx_elem_s* el = x->gg.kids; 227 switch (el->g.tok) { 228 case zx_hrxml_Value_ELEM: 229 if (!x->Value) 230 x->Value = el; 231 return 1; 232 case zx_hrxml_Area_ELEM: 233 if (!x->Area) 234 x->Area = (struct zx_hrxml_Area_s*)el; 235 return 1; 236 237 default: return 0; 238 } 239 } 240 241 242 243 244 int zx_DEC_ATTR_hrxml_Article(struct zx_ctx* c, struct zx_hrxml_Article_s* x) 245 { 246 switch (x->gg.attr->g.tok) { 247 248 default: return 0; 249 } 250 } 251 252 int zx_DEC_ELEM_hrxml_Article(struct zx_ctx* c, struct zx_hrxml_Article_s* x) 253 { 254 struct zx_elem_s* el = x->gg.kids; 255 switch (el->g.tok) { 256 case zx_hrxml_Title_ELEM: 257 if (!x->Title) 258 x->Title = el; 259 return 1; 260 case zx_hrxml_Name_ELEM: 261 if (!x->Name) 262 x->Name = el; 263 return 1; 264 case zx_hrxml_PublicationDate_ELEM: 265 if (!x->PublicationDate) 266 x->PublicationDate = (struct zx_hrxml_PublicationDate_s*)el; 267 return 1; 268 case zx_hrxml_Link_ELEM: 269 if (!x->Link) 270 x->Link = el; 271 return 1; 272 case zx_hrxml_Abstract_ELEM: 273 if (!x->Abstract) 274 x->Abstract = el; 275 return 1; 276 case zx_hrxml_Copyright_ELEM: 277 if (!x->Copyright) 278 x->Copyright = (struct zx_hrxml_Copyright_s*)el; 279 return 1; 280 case zx_hrxml_Comments_ELEM: 281 if (!x->Comments) 282 x->Comments = el; 283 return 1; 284 case zx_hrxml_JournalOrSerialName_ELEM: 285 if (!x->JournalOrSerialName) 286 x->JournalOrSerialName = el; 287 return 1; 288 case zx_hrxml_ISSN_ELEM: 289 if (!x->ISSN) 290 x->ISSN = el; 291 return 1; 292 case zx_hrxml_Volume_ELEM: 293 if (!x->Volume) 294 x->Volume = el; 295 return 1; 296 case zx_hrxml_Issue_ELEM: 297 if (!x->Issue) 298 x->Issue = el; 299 return 1; 300 case zx_hrxml_PageNumber_ELEM: 301 if (!x->PageNumber) 302 x->PageNumber = el; 303 return 1; 304 case zx_hrxml_PublicationLanguage_ELEM: 305 if (!x->PublicationLanguage) 306 x->PublicationLanguage = (struct zx_hrxml_PublicationLanguage_s*)el; 307 return 1; 308 309 default: return 0; 310 } 311 } 312 313 314 315 316 int zx_DEC_ATTR_hrxml_Association(struct zx_ctx* c, struct zx_hrxml_Association_s* x) 317 { 318 switch (x->gg.attr->g.tok) { 319 case zx_type_ATTR: x->type = x->gg.attr; return 1; 320 321 default: return 0; 322 } 323 } 324 325 int zx_DEC_ELEM_hrxml_Association(struct zx_ctx* c, struct zx_hrxml_Association_s* x) 326 { 327 struct zx_elem_s* el = x->gg.kids; 328 switch (el->g.tok) { 329 case zx_hrxml_Name_ELEM: 330 if (!x->Name) 331 x->Name = el; 332 return 1; 333 case zx_hrxml_Id_ELEM: 334 if (!x->Id) 335 x->Id = (struct zx_hrxml_Id_s*)el; 336 return 1; 337 case zx_hrxml_Link_ELEM: 338 if (!x->Link) 339 x->Link = el; 340 return 1; 341 case zx_hrxml_StartDate_ELEM: 342 if (!x->StartDate) 343 x->StartDate = (struct zx_hrxml_StartDate_s*)el; 344 return 1; 345 case zx_hrxml_EndDate_ELEM: 346 if (!x->EndDate) 347 x->EndDate = (struct zx_hrxml_EndDate_s*)el; 348 return 1; 349 case zx_hrxml_Role_ELEM: 350 if (!x->Role) 351 x->Role = el; 352 return 1; 353 case zx_hrxml_Comments_ELEM: 354 if (!x->Comments) 355 x->Comments = el; 356 return 1; 357 358 default: return 0; 359 } 360 } 361 362 363 364 365 int zx_DEC_ATTR_hrxml_Associations(struct zx_ctx* c, struct zx_hrxml_Associations_s* x) 366 { 367 switch (x->gg.attr->g.tok) { 368 369 default: return 0; 370 } 371 } 372 373 int zx_DEC_ELEM_hrxml_Associations(struct zx_ctx* c, struct zx_hrxml_Associations_s* x) 374 { 375 struct zx_elem_s* el = x->gg.kids; 376 switch (el->g.tok) { 377 case zx_hrxml_Association_ELEM: 378 if (!x->Association) 379 x->Association = (struct zx_hrxml_Association_s*)el; 380 return 1; 381 382 default: return 0; 383 } 384 } 385 386 387 388 389 int zx_DEC_ATTR_hrxml_AttachmentReference(struct zx_ctx* c, struct zx_hrxml_AttachmentReference_s* x) 390 { 391 switch (x->gg.attr->g.tok) { 392 case zx_context_ATTR: x->context = x->gg.attr; return 1; 393 case zx_mimeType_ATTR: x->mimeType = x->gg.attr; return 1; 394 395 default: return 0; 396 } 397 } 398 399 int zx_DEC_ELEM_hrxml_AttachmentReference(struct zx_ctx* c, struct zx_hrxml_AttachmentReference_s* x) 400 { 401 struct zx_elem_s* el = x->gg.kids; 402 switch (el->g.tok) { 403 404 default: return 0; 405 } 406 } 407 408 409 410 411 int zx_DEC_ATTR_hrxml_AvailabilityDates(struct zx_ctx* c, struct zx_hrxml_AvailabilityDates_s* x) 412 { 413 switch (x->gg.attr->g.tok) { 414 415 default: return 0; 416 } 417 } 418 419 int zx_DEC_ELEM_hrxml_AvailabilityDates(struct zx_ctx* c, struct zx_hrxml_AvailabilityDates_s* x) 420 { 421 struct zx_elem_s* el = x->gg.kids; 422 switch (el->g.tok) { 423 case zx_hrxml_StartDate_ELEM: 424 if (!x->StartDate) 425 x->StartDate = (struct zx_hrxml_StartDate_s*)el; 426 return 1; 427 case zx_hrxml_EndDate_ELEM: 428 if (!x->EndDate) 429 x->EndDate = (struct zx_hrxml_EndDate_s*)el; 430 return 1; 431 432 default: return 0; 433 } 434 } 435 436 437 438 439 int zx_DEC_ATTR_hrxml_AvailabilityInfo(struct zx_ctx* c, struct zx_hrxml_AvailabilityInfo_s* x) 440 { 441 switch (x->gg.attr->g.tok) { 442 443 default: return 0; 444 } 445 } 446 447 int zx_DEC_ELEM_hrxml_AvailabilityInfo(struct zx_ctx* c, struct zx_hrxml_AvailabilityInfo_s* x) 448 { 449 struct zx_elem_s* el = x->gg.kids; 450 switch (el->g.tok) { 451 case zx_hrxml_AvailabilityDates_ELEM: 452 if (!x->AvailabilityDates) 453 x->AvailabilityDates = (struct zx_hrxml_AvailabilityDates_s*)el; 454 return 1; 455 case zx_hrxml_TermOfNotice_ELEM: 456 if (!x->TermOfNotice) 457 x->TermOfNotice = (struct zx_hrxml_TermOfNotice_s*)el; 458 return 1; 459 460 default: return 0; 461 } 462 } 463 464 465 466 467 int zx_DEC_ATTR_hrxml_BKZClassification(struct zx_ctx* c, struct zx_hrxml_BKZClassification_s* x) 468 { 469 switch (x->gg.attr->g.tok) { 470 471 default: return 0; 472 } 473 } 474 475 int zx_DEC_ELEM_hrxml_BKZClassification(struct zx_ctx* c, struct zx_hrxml_BKZClassification_s* x) 476 { 477 struct zx_elem_s* el = x->gg.kids; 478 switch (el->g.tok) { 479 case zx_hrxml_BKZId_ELEM: 480 if (!x->BKZId) 481 x->BKZId = (struct zx_hrxml_BKZId_s*)el; 482 return 1; 483 case zx_hrxml_BKZName_ELEM: 484 if (!x->BKZName) 485 x->BKZName = el; 486 return 1; 487 488 default: return 0; 489 } 490 } 491 492 493 494 495 int zx_DEC_ATTR_hrxml_BKZId(struct zx_ctx* c, struct zx_hrxml_BKZId_s* x) 496 { 497 switch (x->gg.attr->g.tok) { 498 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 499 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 500 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 501 502 default: return 0; 503 } 504 } 505 506 int zx_DEC_ELEM_hrxml_BKZId(struct zx_ctx* c, struct zx_hrxml_BKZId_s* x) 507 { 508 struct zx_elem_s* el = x->gg.kids; 509 switch (el->g.tok) { 510 case zx_hrxml_IdValue_ELEM: 511 if (!x->IdValue) 512 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 513 return 1; 514 515 default: return 0; 516 } 517 } 518 519 520 521 522 int zx_DEC_ATTR_hrxml_BasePay(struct zx_ctx* c, struct zx_hrxml_BasePay_s* x) 523 { 524 switch (x->gg.attr->g.tok) { 525 case zx_baseInterval_ATTR: x->baseInterval = x->gg.attr; return 1; 526 case zx_currencyCode_ATTR: x->currencyCode = x->gg.attr; return 1; 527 528 default: return 0; 529 } 530 } 531 532 int zx_DEC_ELEM_hrxml_BasePay(struct zx_ctx* c, struct zx_hrxml_BasePay_s* x) 533 { 534 struct zx_elem_s* el = x->gg.kids; 535 switch (el->g.tok) { 536 case zx_hrxml_BasePayAmountMin_ELEM: 537 if (!x->BasePayAmountMin) 538 x->BasePayAmountMin = el; 539 return 1; 540 case zx_hrxml_BasePayAmountMax_ELEM: 541 if (!x->BasePayAmountMax) 542 x->BasePayAmountMax = el; 543 return 1; 544 545 default: return 0; 546 } 547 } 548 549 550 551 552 int zx_DEC_ATTR_hrxml_Benefits(struct zx_ctx* c, struct zx_hrxml_Benefits_s* x) 553 { 554 switch (x->gg.attr->g.tok) { 555 556 default: return 0; 557 } 558 } 559 560 int zx_DEC_ELEM_hrxml_Benefits(struct zx_ctx* c, struct zx_hrxml_Benefits_s* x) 561 { 562 struct zx_elem_s* el = x->gg.kids; 563 switch (el->g.tok) { 564 case zx_hrxml_Insurance_ELEM: 565 if (!x->Insurance) 566 x->Insurance = (struct zx_hrxml_Insurance_s*)el; 567 return 1; 568 case zx_hrxml_RetirementOrSavingsPlan_ELEM: 569 if (!x->RetirementOrSavingsPlan) 570 x->RetirementOrSavingsPlan = el; 571 return 1; 572 case zx_hrxml_CompanyVehicle_ELEM: 573 if (!x->CompanyVehicle) 574 x->CompanyVehicle = (struct zx_hrxml_CompanyVehicle_s*)el; 575 return 1; 576 case zx_hrxml_RelocationAssistance_ELEM: 577 if (!x->RelocationAssistance) 578 x->RelocationAssistance = (struct zx_hrxml_RelocationAssistance_s*)el; 579 return 1; 580 case zx_hrxml_VisaSponsorship_ELEM: 581 if (!x->VisaSponsorship) 582 x->VisaSponsorship = el; 583 return 1; 584 case zx_hrxml_TimeOffAllowance_ELEM: 585 if (!x->TimeOffAllowance) 586 x->TimeOffAllowance = (struct zx_hrxml_TimeOffAllowance_s*)el; 587 return 1; 588 case zx_hrxml_ExpatriateBenefits_ELEM: 589 if (!x->ExpatriateBenefits) 590 x->ExpatriateBenefits = (struct zx_hrxml_ExpatriateBenefits_s*)el; 591 return 1; 592 case zx_hrxml_OtherBenefits_ELEM: 593 if (!x->OtherBenefits) 594 x->OtherBenefits = (struct zx_hrxml_OtherBenefits_s*)el; 595 return 1; 596 case zx_hrxml_Comments_ELEM: 597 if (!x->Comments) 598 x->Comments = el; 599 return 1; 600 601 default: return 0; 602 } 603 } 604 605 606 607 608 int zx_DEC_ATTR_hrxml_BiologicalDescriptors(struct zx_ctx* c, struct zx_hrxml_BiologicalDescriptors_s* x) 609 { 610 switch (x->gg.attr->g.tok) { 611 612 default: return 0; 613 } 614 } 615 616 int zx_DEC_ELEM_hrxml_BiologicalDescriptors(struct zx_ctx* c, struct zx_hrxml_BiologicalDescriptors_s* x) 617 { 618 struct zx_elem_s* el = x->gg.kids; 619 switch (el->g.tok) { 620 case zx_hrxml_DateOfBirth_ELEM: 621 if (!x->DateOfBirth) 622 x->DateOfBirth = el; 623 return 1; 624 case zx_hrxml_MonthDayOfBirth_ELEM: 625 if (!x->MonthDayOfBirth) 626 x->MonthDayOfBirth = el; 627 return 1; 628 case zx_hrxml_Age_ELEM: 629 if (!x->Age) 630 x->Age = el; 631 return 1; 632 case zx_hrxml_GenderCode_ELEM: 633 if (!x->GenderCode) 634 x->GenderCode = el; 635 return 1; 636 case zx_hrxml_EyeColor_ELEM: 637 if (!x->EyeColor) 638 x->EyeColor = el; 639 return 1; 640 case zx_hrxml_HairColor_ELEM: 641 if (!x->HairColor) 642 x->HairColor = el; 643 return 1; 644 case zx_hrxml_Height_ELEM: 645 if (!x->Height) 646 x->Height = (struct zx_hrxml_Height_s*)el; 647 return 1; 648 case zx_hrxml_Weight_ELEM: 649 if (!x->Weight) 650 x->Weight = (struct zx_hrxml_Weight_s*)el; 651 return 1; 652 case zx_hrxml_IdentifyingMarks_ELEM: 653 if (!x->IdentifyingMarks) 654 x->IdentifyingMarks = el; 655 return 1; 656 case zx_hrxml_DisabilityInfo_ELEM: 657 if (!x->DisabilityInfo) 658 x->DisabilityInfo = (struct zx_hrxml_DisabilityInfo_s*)el; 659 return 1; 660 case zx_hrxml_UserArea_ELEM: 661 if (!x->UserArea) 662 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 663 return 1; 664 665 default: return 0; 666 } 667 } 668 669 670 671 672 int zx_DEC_ATTR_hrxml_Book(struct zx_ctx* c, struct zx_hrxml_Book_s* x) 673 { 674 switch (x->gg.attr->g.tok) { 675 676 default: return 0; 677 } 678 } 679 680 int zx_DEC_ELEM_hrxml_Book(struct zx_ctx* c, struct zx_hrxml_Book_s* x) 681 { 682 struct zx_elem_s* el = x->gg.kids; 683 switch (el->g.tok) { 684 case zx_hrxml_Title_ELEM: 685 if (!x->Title) 686 x->Title = el; 687 return 1; 688 case zx_hrxml_Name_ELEM: 689 if (!x->Name) 690 x->Name = el; 691 return 1; 692 case zx_hrxml_PublicationDate_ELEM: 693 if (!x->PublicationDate) 694 x->PublicationDate = (struct zx_hrxml_PublicationDate_s*)el; 695 return 1; 696 case zx_hrxml_Link_ELEM: 697 if (!x->Link) 698 x->Link = el; 699 return 1; 700 case zx_hrxml_Abstract_ELEM: 701 if (!x->Abstract) 702 x->Abstract = el; 703 return 1; 704 case zx_hrxml_Copyright_ELEM: 705 if (!x->Copyright) 706 x->Copyright = (struct zx_hrxml_Copyright_s*)el; 707 return 1; 708 case zx_hrxml_Comments_ELEM: 709 if (!x->Comments) 710 x->Comments = el; 711 return 1; 712 case zx_hrxml_Edition_ELEM: 713 if (!x->Edition) 714 x->Edition = el; 715 return 1; 716 case zx_hrxml_Chapter_ELEM: 717 if (!x->Chapter) 718 x->Chapter = el; 719 return 1; 720 case zx_hrxml_ISSN_ELEM: 721 if (!x->ISSN) 722 x->ISSN = el; 723 return 1; 724 case zx_hrxml_ISBN_ELEM: 725 if (!x->ISBN) 726 x->ISBN = el; 727 return 1; 728 case zx_hrxml_NumberOfPages_ELEM: 729 if (!x->NumberOfPages) 730 x->NumberOfPages = el; 731 return 1; 732 case zx_hrxml_PublisherName_ELEM: 733 if (!x->PublisherName) 734 x->PublisherName = el; 735 return 1; 736 case zx_hrxml_PublisherLocation_ELEM: 737 if (!x->PublisherLocation) 738 x->PublisherLocation = el; 739 return 1; 740 741 default: return 0; 742 } 743 } 744 745 746 747 748 int zx_DEC_ATTR_hrxml_Candidate(struct zx_ctx* c, struct zx_hrxml_Candidate_s* x) 749 { 750 switch (x->gg.attr->g.tok) { 751 case zx_lang_ATTR|zx_xml_NS: x->lang = x->gg.attr; return 1; 752 753 default: return 0; 754 } 755 } 756 757 int zx_DEC_ELEM_hrxml_Candidate(struct zx_ctx* c, struct zx_hrxml_Candidate_s* x) 758 { 759 struct zx_elem_s* el = x->gg.kids; 760 switch (el->g.tok) { 761 case zx_hrxml_CandidateRecordInfo_ELEM: 762 if (!x->CandidateRecordInfo) 763 x->CandidateRecordInfo = (struct zx_hrxml_CandidateRecordInfo_s*)el; 764 return 1; 765 case zx_hrxml_RelatedPositionPostings_ELEM: 766 if (!x->RelatedPositionPostings) 767 x->RelatedPositionPostings = (struct zx_hrxml_RelatedPositionPostings_s*)el; 768 return 1; 769 case zx_hrxml_CandidateSupplier_ELEM: 770 if (!x->CandidateSupplier) 771 x->CandidateSupplier = (struct zx_hrxml_CandidateSupplier_s*)el; 772 return 1; 773 case zx_hrxml_DistributionGuidelines_ELEM: 774 if (!x->DistributionGuidelines) 775 x->DistributionGuidelines = el; 776 return 1; 777 case zx_hrxml_CandidateProfile_ELEM: 778 if (!x->CandidateProfile) 779 x->CandidateProfile = (struct zx_hrxml_CandidateProfile_s*)el; 780 return 1; 781 case zx_hrxml_Resume_ELEM: 782 if (!x->Resume) 783 x->Resume = (struct zx_hrxml_Resume_s*)el; 784 return 1; 785 case zx_hrxml_UserArea_ELEM: 786 if (!x->UserArea) 787 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 788 return 1; 789 790 default: return 0; 791 } 792 } 793 794 795 796 797 int zx_DEC_ATTR_hrxml_CandidateProfile(struct zx_ctx* c, struct zx_hrxml_CandidateProfile_s* x) 798 { 799 switch (x->gg.attr->g.tok) { 800 case zx_lang_ATTR|zx_xml_NS: x->lang = x->gg.attr; return 1; 801 802 default: return 0; 803 } 804 } 805 806 int zx_DEC_ELEM_hrxml_CandidateProfile(struct zx_ctx* c, struct zx_hrxml_CandidateProfile_s* x) 807 { 808 struct zx_elem_s* el = x->gg.kids; 809 switch (el->g.tok) { 810 case zx_hrxml_ProfileId_ELEM: 811 if (!x->ProfileId) 812 x->ProfileId = (struct zx_hrxml_ProfileId_s*)el; 813 return 1; 814 case zx_hrxml_ProfileName_ELEM: 815 if (!x->ProfileName) 816 x->ProfileName = el; 817 return 1; 818 case zx_hrxml_AvailabilityInfo_ELEM: 819 if (!x->AvailabilityInfo) 820 x->AvailabilityInfo = (struct zx_hrxml_AvailabilityInfo_s*)el; 821 return 1; 822 case zx_hrxml_DistributionGuidelines_ELEM: 823 if (!x->DistributionGuidelines) 824 x->DistributionGuidelines = el; 825 return 1; 826 case zx_hrxml_PersonalData_ELEM: 827 if (!x->PersonalData) 828 x->PersonalData = (struct zx_hrxml_PersonalData_s*)el; 829 return 1; 830 case zx_hrxml_PreferredPosition_ELEM: 831 if (!x->PreferredPosition) 832 x->PreferredPosition = (struct zx_hrxml_PreferredPosition_s*)el; 833 return 1; 834 case zx_hrxml_EmploymentHistory_ELEM: 835 if (!x->EmploymentHistory) 836 x->EmploymentHistory = (struct zx_hrxml_EmploymentHistory_s*)el; 837 return 1; 838 case zx_hrxml_EducationHistory_ELEM: 839 if (!x->EducationHistory) 840 x->EducationHistory = (struct zx_hrxml_EducationHistory_s*)el; 841 return 1; 842 case zx_hrxml_MilitaryHistory_ELEM: 843 if (!x->MilitaryHistory) 844 x->MilitaryHistory = (struct zx_hrxml_MilitaryHistory_s*)el; 845 return 1; 846 case zx_hrxml_Associations_ELEM: 847 if (!x->Associations) 848 x->Associations = (struct zx_hrxml_Associations_s*)el; 849 return 1; 850 case zx_hrxml_SupportingMaterials_ELEM: 851 if (!x->SupportingMaterials) 852 x->SupportingMaterials = (struct zx_hrxml_SupportingMaterials_s*)el; 853 return 1; 854 case zx_hrxml_UserArea_ELEM: 855 if (!x->UserArea) 856 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 857 return 1; 858 859 default: return 0; 860 } 861 } 862 863 864 865 866 int zx_DEC_ATTR_hrxml_CandidateRecordInfo(struct zx_ctx* c, struct zx_hrxml_CandidateRecordInfo_s* x) 867 { 868 switch (x->gg.attr->g.tok) { 869 870 default: return 0; 871 } 872 } 873 874 int zx_DEC_ELEM_hrxml_CandidateRecordInfo(struct zx_ctx* c, struct zx_hrxml_CandidateRecordInfo_s* x) 875 { 876 struct zx_elem_s* el = x->gg.kids; 877 switch (el->g.tok) { 878 case zx_hrxml_Id_ELEM: 879 if (!x->Id) 880 x->Id = (struct zx_hrxml_Id_s*)el; 881 return 1; 882 case zx_hrxml_Status_ELEM: 883 if (!x->Status) 884 x->Status = (struct zx_hrxml_Status_s*)el; 885 return 1; 886 887 default: return 0; 888 } 889 } 890 891 892 893 894 int zx_DEC_ATTR_hrxml_CandidateSupplier(struct zx_ctx* c, struct zx_hrxml_CandidateSupplier_s* x) 895 { 896 switch (x->gg.attr->g.tok) { 897 case zx_relationship_ATTR: x->relationship = x->gg.attr; return 1; 898 899 default: return 0; 900 } 901 } 902 903 int zx_DEC_ELEM_hrxml_CandidateSupplier(struct zx_ctx* c, struct zx_hrxml_CandidateSupplier_s* x) 904 { 905 struct zx_elem_s* el = x->gg.kids; 906 switch (el->g.tok) { 907 case zx_hrxml_SupplierId_ELEM: 908 if (!x->SupplierId) 909 x->SupplierId = (struct zx_hrxml_SupplierId_s*)el; 910 return 1; 911 case zx_hrxml_EntityName_ELEM: 912 if (!x->EntityName) 913 x->EntityName = el; 914 return 1; 915 case zx_hrxml_ContactName_ELEM: 916 if (!x->ContactName) 917 x->ContactName = (struct zx_hrxml_ContactName_s*)el; 918 return 1; 919 case zx_hrxml_ContactMethod_ELEM: 920 if (!x->ContactMethod) 921 x->ContactMethod = (struct zx_hrxml_ContactMethod_s*)el; 922 return 1; 923 case zx_hrxml_SourceType_ELEM: 924 if (!x->SourceType) 925 x->SourceType = (struct zx_hrxml_SourceType_s*)el; 926 return 1; 927 928 default: return 0; 929 } 930 } 931 932 933 934 935 int zx_DEC_ATTR_hrxml_ChildrenInfo(struct zx_ctx* c, struct zx_hrxml_ChildrenInfo_s* x) 936 { 937 switch (x->gg.attr->g.tok) { 938 939 default: return 0; 940 } 941 } 942 943 int zx_DEC_ELEM_hrxml_ChildrenInfo(struct zx_ctx* c, struct zx_hrxml_ChildrenInfo_s* x) 944 { 945 struct zx_elem_s* el = x->gg.kids; 946 switch (el->g.tok) { 947 case zx_hrxml_NumberOfChildren_ELEM: 948 if (!x->NumberOfChildren) 949 x->NumberOfChildren = el; 950 return 1; 951 case zx_hrxml_Comments_ELEM: 952 if (!x->Comments) 953 x->Comments = el; 954 return 1; 955 956 default: return 0; 957 } 958 } 959 960 961 962 963 int zx_DEC_ATTR_hrxml_ClassRank(struct zx_ctx* c, struct zx_hrxml_ClassRank_s* x) 964 { 965 switch (x->gg.attr->g.tok) { 966 case zx_numberOfStudents_ATTR: x->numberOfStudents = x->gg.attr; return 1; 967 968 default: return 0; 969 } 970 } 971 972 int zx_DEC_ELEM_hrxml_ClassRank(struct zx_ctx* c, struct zx_hrxml_ClassRank_s* x) 973 { 974 struct zx_elem_s* el = x->gg.kids; 975 switch (el->g.tok) { 976 977 default: return 0; 978 } 979 } 980 981 982 983 984 int zx_DEC_ATTR_hrxml_Commute(struct zx_ctx* c, struct zx_hrxml_Commute_s* x) 985 { 986 switch (x->gg.attr->g.tok) { 987 988 default: return 0; 989 } 990 } 991 992 int zx_DEC_ELEM_hrxml_Commute(struct zx_ctx* c, struct zx_hrxml_Commute_s* x) 993 { 994 struct zx_elem_s* el = x->gg.kids; 995 switch (el->g.tok) { 996 case zx_hrxml_TimeMax_ELEM: 997 if (!x->TimeMax) 998 x->TimeMax = (struct zx_hrxml_TimeMax_s*)el; 999 return 1; 1000 case zx_hrxml_DistanceMax_ELEM: 1001 if (!x->DistanceMax) 1002 x->DistanceMax = (struct zx_hrxml_DistanceMax_s*)el; 1003 return 1; 1004 case zx_hrxml_Comments_ELEM: 1005 if (!x->Comments) 1006 x->Comments = el; 1007 return 1; 1008 1009 default: return 0; 1010 } 1011 } 1012 1013 1014 1015 1016 int zx_DEC_ATTR_hrxml_Company(struct zx_ctx* c, struct zx_hrxml_Company_s* x) 1017 { 1018 switch (x->gg.attr->g.tok) { 1019 1020 default: return 0; 1021 } 1022 } 1023 1024 int zx_DEC_ELEM_hrxml_Company(struct zx_ctx* c, struct zx_hrxml_Company_s* x) 1025 { 1026 struct zx_elem_s* el = x->gg.kids; 1027 switch (el->g.tok) { 1028 case zx_hrxml_Id_ELEM: 1029 if (!x->Id) 1030 x->Id = (struct zx_hrxml_Id_s*)el; 1031 return 1; 1032 case zx_hrxml_Name_ELEM: 1033 if (!x->Name) 1034 x->Name = el; 1035 return 1; 1036 1037 default: return 0; 1038 } 1039 } 1040 1041 1042 1043 1044 int zx_DEC_ATTR_hrxml_CompanyVehicle(struct zx_ctx* c, struct zx_hrxml_CompanyVehicle_s* x) 1045 { 1046 switch (x->gg.attr->g.tok) { 1047 case zx_companyOffered_ATTR: x->companyOffered = x->gg.attr; return 1; 1048 1049 default: return 0; 1050 } 1051 } 1052 1053 int zx_DEC_ELEM_hrxml_CompanyVehicle(struct zx_ctx* c, struct zx_hrxml_CompanyVehicle_s* x) 1054 { 1055 struct zx_elem_s* el = x->gg.kids; 1056 switch (el->g.tok) { 1057 case zx_hrxml_Description_ELEM: 1058 if (!x->Description) 1059 x->Description = (struct zx_hrxml_Description_s*)el; 1060 return 1; 1061 1062 default: return 0; 1063 } 1064 } 1065 1066 1067 1068 1069 int zx_DEC_ATTR_hrxml_Compensation(struct zx_ctx* c, struct zx_hrxml_Compensation_s* x) 1070 { 1071 switch (x->gg.attr->g.tok) { 1072 1073 default: return 0; 1074 } 1075 } 1076 1077 int zx_DEC_ELEM_hrxml_Compensation(struct zx_ctx* c, struct zx_hrxml_Compensation_s* x) 1078 { 1079 struct zx_elem_s* el = x->gg.kids; 1080 switch (el->g.tok) { 1081 case zx_hrxml_StartingCompensation_ELEM: 1082 if (!x->StartingCompensation) 1083 x->StartingCompensation = (struct zx_hrxml_StartingCompensation_s*)el; 1084 return 1; 1085 case zx_hrxml_EndingCompensation_ELEM: 1086 if (!x->EndingCompensation) 1087 x->EndingCompensation = (struct zx_hrxml_EndingCompensation_s*)el; 1088 return 1; 1089 case zx_hrxml_Comments_ELEM: 1090 if (!x->Comments) 1091 x->Comments = el; 1092 return 1; 1093 case zx_hrxml_OtherCompensation_ELEM: 1094 if (!x->OtherCompensation) 1095 x->OtherCompensation = (struct zx_hrxml_OtherCompensation_s*)el; 1096 return 1; 1097 1098 default: return 0; 1099 } 1100 } 1101 1102 1103 1104 1105 int zx_DEC_ATTR_hrxml_Competency(struct zx_ctx* c, struct zx_hrxml_Competency_s* x) 1106 { 1107 switch (x->gg.attr->g.tok) { 1108 case zx_description_ATTR: x->description = x->gg.attr; return 1; 1109 case zx_name_ATTR: x->name = x->gg.attr; return 1; 1110 case zx_required_ATTR: x->required = x->gg.attr; return 1; 1111 1112 default: return 0; 1113 } 1114 } 1115 1116 int zx_DEC_ELEM_hrxml_Competency(struct zx_ctx* c, struct zx_hrxml_Competency_s* x) 1117 { 1118 struct zx_elem_s* el = x->gg.kids; 1119 switch (el->g.tok) { 1120 case zx_hrxml_CompetencyId_ELEM: 1121 if (!x->CompetencyId) 1122 x->CompetencyId = (struct zx_hrxml_CompetencyId_s*)el; 1123 return 1; 1124 case zx_hrxml_TaxonomyId_ELEM: 1125 if (!x->TaxonomyId) 1126 x->TaxonomyId = (struct zx_hrxml_TaxonomyId_s*)el; 1127 return 1; 1128 case zx_hrxml_CompetencyEvidence_ELEM: 1129 if (!x->CompetencyEvidence) 1130 x->CompetencyEvidence = (struct zx_hrxml_CompetencyEvidence_s*)el; 1131 return 1; 1132 case zx_hrxml_CompetencyWeight_ELEM: 1133 if (!x->CompetencyWeight) 1134 x->CompetencyWeight = (struct zx_hrxml_CompetencyWeight_s*)el; 1135 return 1; 1136 case zx_hrxml_Competency_ELEM: 1137 if (!x->Competency) 1138 x->Competency = (struct zx_hrxml_Competency_s*)el; 1139 return 1; 1140 case zx_hrxml_UserArea_ELEM: 1141 if (!x->UserArea) 1142 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 1143 return 1; 1144 1145 default: return 0; 1146 } 1147 } 1148 1149 1150 1151 1152 int zx_DEC_ATTR_hrxml_CompetencyEvidence(struct zx_ctx* c, struct zx_hrxml_CompetencyEvidence_s* x) 1153 { 1154 switch (x->gg.attr->g.tok) { 1155 case zx_dateOfIncident_ATTR: x->dateOfIncident = x->gg.attr; return 1; 1156 case zx_expirationDate_ATTR: x->expirationDate = x->gg.attr; return 1; 1157 case zx_lastUsed_ATTR: x->lastUsed = x->gg.attr; return 1; 1158 case zx_name_ATTR: x->name = x->gg.attr; return 1; 1159 case zx_required_ATTR: x->required = x->gg.attr; return 1; 1160 case zx_typeDescription_ATTR: x->typeDescription = x->gg.attr; return 1; 1161 case zx_typeId_ATTR: x->typeId = x->gg.attr; return 1; 1162 1163 default: return 0; 1164 } 1165 } 1166 1167 int zx_DEC_ELEM_hrxml_CompetencyEvidence(struct zx_ctx* c, struct zx_hrxml_CompetencyEvidence_s* x) 1168 { 1169 struct zx_elem_s* el = x->gg.kids; 1170 switch (el->g.tok) { 1171 case zx_hrxml_EvidenceId_ELEM: 1172 if (!x->EvidenceId) 1173 x->EvidenceId = (struct zx_hrxml_EvidenceId_s*)el; 1174 return 1; 1175 case zx_hrxml_NumericValue_ELEM: 1176 if (!x->NumericValue) 1177 x->NumericValue = (struct zx_hrxml_NumericValue_s*)el; 1178 return 1; 1179 case zx_hrxml_StringValue_ELEM: 1180 if (!x->StringValue) 1181 x->StringValue = (struct zx_hrxml_StringValue_s*)el; 1182 return 1; 1183 case zx_hrxml_SupportingInformation_ELEM: 1184 if (!x->SupportingInformation) 1185 x->SupportingInformation = el; 1186 return 1; 1187 1188 default: return 0; 1189 } 1190 } 1191 1192 1193 1194 1195 int zx_DEC_ATTR_hrxml_CompetencyId(struct zx_ctx* c, struct zx_hrxml_CompetencyId_s* x) 1196 { 1197 switch (x->gg.attr->g.tok) { 1198 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 1199 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 1200 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 1201 1202 default: return 0; 1203 } 1204 } 1205 1206 int zx_DEC_ELEM_hrxml_CompetencyId(struct zx_ctx* c, struct zx_hrxml_CompetencyId_s* x) 1207 { 1208 struct zx_elem_s* el = x->gg.kids; 1209 switch (el->g.tok) { 1210 case zx_hrxml_IdValue_ELEM: 1211 if (!x->IdValue) 1212 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 1213 return 1; 1214 1215 default: return 0; 1216 } 1217 } 1218 1219 1220 1221 1222 int zx_DEC_ATTR_hrxml_CompetencyWeight(struct zx_ctx* c, struct zx_hrxml_CompetencyWeight_s* x) 1223 { 1224 switch (x->gg.attr->g.tok) { 1225 case zx_type_ATTR: x->type = x->gg.attr; return 1; 1226 1227 default: return 0; 1228 } 1229 } 1230 1231 int zx_DEC_ELEM_hrxml_CompetencyWeight(struct zx_ctx* c, struct zx_hrxml_CompetencyWeight_s* x) 1232 { 1233 struct zx_elem_s* el = x->gg.kids; 1234 switch (el->g.tok) { 1235 case zx_hrxml_NumericValue_ELEM: 1236 if (!x->NumericValue) 1237 x->NumericValue = (struct zx_hrxml_NumericValue_s*)el; 1238 return 1; 1239 case zx_hrxml_StringValue_ELEM: 1240 if (!x->StringValue) 1241 x->StringValue = (struct zx_hrxml_StringValue_s*)el; 1242 return 1; 1243 case zx_hrxml_SupportingInformation_ELEM: 1244 if (!x->SupportingInformation) 1245 x->SupportingInformation = el; 1246 return 1; 1247 1248 default: return 0; 1249 } 1250 } 1251 1252 1253 1254 1255 int zx_DEC_ATTR_hrxml_ConferenceDate(struct zx_ctx* c, struct zx_hrxml_ConferenceDate_s* x) 1256 { 1257 switch (x->gg.attr->g.tok) { 1258 case zx_dateDescription_ATTR: x->dateDescription = x->gg.attr; return 1; 1259 1260 default: return 0; 1261 } 1262 } 1263 1264 int zx_DEC_ELEM_hrxml_ConferenceDate(struct zx_ctx* c, struct zx_hrxml_ConferenceDate_s* x) 1265 { 1266 struct zx_elem_s* el = x->gg.kids; 1267 switch (el->g.tok) { 1268 case zx_hrxml_AnyDate_ELEM: 1269 if (!x->AnyDate) 1270 x->AnyDate = el; 1271 return 1; 1272 case zx_hrxml_YearMonth_ELEM: 1273 if (!x->YearMonth) 1274 x->YearMonth = el; 1275 return 1; 1276 case zx_hrxml_Year_ELEM: 1277 if (!x->Year) 1278 x->Year = el; 1279 return 1; 1280 case zx_hrxml_MonthDay_ELEM: 1281 if (!x->MonthDay) 1282 x->MonthDay = el; 1283 return 1; 1284 case zx_hrxml_StringDate_ELEM: 1285 if (!x->StringDate) 1286 x->StringDate = el; 1287 return 1; 1288 1289 default: return 0; 1290 } 1291 } 1292 1293 1294 1295 1296 int zx_DEC_ATTR_hrxml_ConferencePaper(struct zx_ctx* c, struct zx_hrxml_ConferencePaper_s* x) 1297 { 1298 switch (x->gg.attr->g.tok) { 1299 1300 default: return 0; 1301 } 1302 } 1303 1304 int zx_DEC_ELEM_hrxml_ConferencePaper(struct zx_ctx* c, struct zx_hrxml_ConferencePaper_s* x) 1305 { 1306 struct zx_elem_s* el = x->gg.kids; 1307 switch (el->g.tok) { 1308 case zx_hrxml_Title_ELEM: 1309 if (!x->Title) 1310 x->Title = el; 1311 return 1; 1312 case zx_hrxml_Name_ELEM: 1313 if (!x->Name) 1314 x->Name = el; 1315 return 1; 1316 case zx_hrxml_PublicationDate_ELEM: 1317 if (!x->PublicationDate) 1318 x->PublicationDate = (struct zx_hrxml_PublicationDate_s*)el; 1319 return 1; 1320 case zx_hrxml_Link_ELEM: 1321 if (!x->Link) 1322 x->Link = el; 1323 return 1; 1324 case zx_hrxml_Abstract_ELEM: 1325 if (!x->Abstract) 1326 x->Abstract = el; 1327 return 1; 1328 case zx_hrxml_Copyright_ELEM: 1329 if (!x->Copyright) 1330 x->Copyright = (struct zx_hrxml_Copyright_s*)el; 1331 return 1; 1332 case zx_hrxml_Comments_ELEM: 1333 if (!x->Comments) 1334 x->Comments = el; 1335 return 1; 1336 case zx_hrxml_EventName_ELEM: 1337 if (!x->EventName) 1338 x->EventName = el; 1339 return 1; 1340 case zx_hrxml_ConferenceDate_ELEM: 1341 if (!x->ConferenceDate) 1342 x->ConferenceDate = (struct zx_hrxml_ConferenceDate_s*)el; 1343 return 1; 1344 case zx_hrxml_ConferenceLocation_ELEM: 1345 if (!x->ConferenceLocation) 1346 x->ConferenceLocation = el; 1347 return 1; 1348 1349 default: return 0; 1350 } 1351 } 1352 1353 1354 1355 1356 int zx_DEC_ATTR_hrxml_Considerations(struct zx_ctx* c, struct zx_hrxml_Considerations_s* x) 1357 { 1358 switch (x->gg.attr->g.tok) { 1359 case zx_lang_ATTR|zx_xml_NS: x->lang = x->gg.attr; return 1; 1360 1361 default: return 0; 1362 } 1363 } 1364 1365 int zx_DEC_ELEM_hrxml_Considerations(struct zx_ctx* c, struct zx_hrxml_Considerations_s* x) 1366 { 1367 struct zx_elem_s* el = x->gg.kids; 1368 switch (el->g.tok) { 1369 case zx_hrxml_General_ELEM: 1370 if (!x->General) 1371 x->General = el; 1372 return 1; 1373 case zx_hrxml_Physical_ELEM: 1374 if (!x->Physical) 1375 x->Physical = el; 1376 return 1; 1377 case zx_hrxml_SafetyEquipment_ELEM: 1378 if (!x->SafetyEquipment) 1379 x->SafetyEquipment = (struct zx_hrxml_SafetyEquipment_s*)el; 1380 return 1; 1381 case zx_hrxml_DressCode_ELEM: 1382 if (!x->DressCode) 1383 x->DressCode = (struct zx_hrxml_DressCode_s*)el; 1384 return 1; 1385 case zx_hrxml_UserArea_ELEM: 1386 if (!x->UserArea) 1387 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 1388 return 1; 1389 1390 default: return 0; 1391 } 1392 } 1393 1394 1395 1396 1397 int zx_DEC_ATTR_hrxml_ContactId(struct zx_ctx* c, struct zx_hrxml_ContactId_s* x) 1398 { 1399 switch (x->gg.attr->g.tok) { 1400 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 1401 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 1402 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 1403 1404 default: return 0; 1405 } 1406 } 1407 1408 int zx_DEC_ELEM_hrxml_ContactId(struct zx_ctx* c, struct zx_hrxml_ContactId_s* x) 1409 { 1410 struct zx_elem_s* el = x->gg.kids; 1411 switch (el->g.tok) { 1412 case zx_hrxml_IdValue_ELEM: 1413 if (!x->IdValue) 1414 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 1415 return 1; 1416 1417 default: return 0; 1418 } 1419 } 1420 1421 1422 1423 1424 int zx_DEC_ATTR_hrxml_ContactInfo(struct zx_ctx* c, struct zx_hrxml_ContactInfo_s* x) 1425 { 1426 switch (x->gg.attr->g.tok) { 1427 1428 default: return 0; 1429 } 1430 } 1431 1432 int zx_DEC_ELEM_hrxml_ContactInfo(struct zx_ctx* c, struct zx_hrxml_ContactInfo_s* x) 1433 { 1434 struct zx_elem_s* el = x->gg.kids; 1435 switch (el->g.tok) { 1436 case zx_hrxml_PersonName_ELEM: 1437 if (!x->PersonName) 1438 x->PersonName = (struct zx_hrxml_PersonName_s*)el; 1439 return 1; 1440 case zx_hrxml_ContactMethod_ELEM: 1441 if (!x->ContactMethod) 1442 x->ContactMethod = (struct zx_hrxml_ContactMethod_s*)el; 1443 return 1; 1444 1445 default: return 0; 1446 } 1447 } 1448 1449 1450 1451 1452 int zx_DEC_ATTR_hrxml_ContactMethod(struct zx_ctx* c, struct zx_hrxml_ContactMethod_s* x) 1453 { 1454 switch (x->gg.attr->g.tok) { 1455 1456 default: return 0; 1457 } 1458 } 1459 1460 int zx_DEC_ELEM_hrxml_ContactMethod(struct zx_ctx* c, struct zx_hrxml_ContactMethod_s* x) 1461 { 1462 struct zx_elem_s* el = x->gg.kids; 1463 switch (el->g.tok) { 1464 case zx_hrxml_Use_ELEM: 1465 if (!x->Use) 1466 x->Use = el; 1467 return 1; 1468 case zx_hrxml_Location_ELEM: 1469 if (!x->Location) 1470 x->Location = el; 1471 return 1; 1472 case zx_hrxml_WhenAvailable_ELEM: 1473 if (!x->WhenAvailable) 1474 x->WhenAvailable = el; 1475 return 1; 1476 case zx_hrxml_Telephone_ELEM: 1477 if (!x->Telephone) 1478 x->Telephone = (struct zx_hrxml_Telephone_s*)el; 1479 return 1; 1480 case zx_hrxml_Mobile_ELEM: 1481 if (!x->Mobile) 1482 x->Mobile = (struct zx_hrxml_Mobile_s*)el; 1483 return 1; 1484 case zx_hrxml_Fax_ELEM: 1485 if (!x->Fax) 1486 x->Fax = (struct zx_hrxml_Fax_s*)el; 1487 return 1; 1488 case zx_hrxml_Pager_ELEM: 1489 if (!x->Pager) 1490 x->Pager = (struct zx_hrxml_Pager_s*)el; 1491 return 1; 1492 case zx_hrxml_TTYTDD_ELEM: 1493 if (!x->TTYTDD) 1494 x->TTYTDD = (struct zx_hrxml_TTYTDD_s*)el; 1495 return 1; 1496 case zx_hrxml_InternetEmailAddress_ELEM: 1497 if (!x->InternetEmailAddress) 1498 x->InternetEmailAddress = el; 1499 return 1; 1500 case zx_hrxml_InternetWebAddress_ELEM: 1501 if (!x->InternetWebAddress) 1502 x->InternetWebAddress = el; 1503 return 1; 1504 case zx_hrxml_PostalAddress_ELEM: 1505 if (!x->PostalAddress) 1506 x->PostalAddress = (struct zx_hrxml_PostalAddress_s*)el; 1507 return 1; 1508 1509 default: return 0; 1510 } 1511 } 1512 1513 1514 1515 1516 int zx_DEC_ATTR_hrxml_ContactName(struct zx_ctx* c, struct zx_hrxml_ContactName_s* x) 1517 { 1518 switch (x->gg.attr->g.tok) { 1519 case zx_script_ATTR: x->script = x->gg.attr; return 1; 1520 1521 default: return 0; 1522 } 1523 } 1524 1525 int zx_DEC_ELEM_hrxml_ContactName(struct zx_ctx* c, struct zx_hrxml_ContactName_s* x) 1526 { 1527 struct zx_elem_s* el = x->gg.kids; 1528 switch (el->g.tok) { 1529 case zx_hrxml_FormattedName_ELEM: 1530 if (!x->FormattedName) 1531 x->FormattedName = el; 1532 return 1; 1533 case zx_hrxml_LegalName_ELEM: 1534 if (!x->LegalName) 1535 x->LegalName = el; 1536 return 1; 1537 case zx_hrxml_GivenName_ELEM: 1538 if (!x->GivenName) 1539 x->GivenName = el; 1540 return 1; 1541 case zx_hrxml_PreferredGivenName_ELEM: 1542 if (!x->PreferredGivenName) 1543 x->PreferredGivenName = el; 1544 return 1; 1545 case zx_hrxml_MiddleName_ELEM: 1546 if (!x->MiddleName) 1547 x->MiddleName = el; 1548 return 1; 1549 case zx_hrxml_FamilyName_ELEM: 1550 if (!x->FamilyName) 1551 x->FamilyName = (struct zx_hrxml_FamilyName_s*)el; 1552 return 1; 1553 case zx_hrxml_Affix_ELEM: 1554 if (!x->Affix) 1555 x->Affix = (struct zx_hrxml_Affix_s*)el; 1556 return 1; 1557 case zx_hrxml_AlternateScript_ELEM: 1558 if (!x->AlternateScript) 1559 x->AlternateScript = (struct zx_hrxml_AlternateScript_s*)el; 1560 return 1; 1561 1562 default: return 0; 1563 } 1564 } 1565 1566 1567 1568 1569 int zx_DEC_ATTR_hrxml_Copyright(struct zx_ctx* c, struct zx_hrxml_Copyright_s* x) 1570 { 1571 switch (x->gg.attr->g.tok) { 1572 1573 default: return 0; 1574 } 1575 } 1576 1577 int zx_DEC_ELEM_hrxml_Copyright(struct zx_ctx* c, struct zx_hrxml_Copyright_s* x) 1578 { 1579 struct zx_elem_s* el = x->gg.kids; 1580 switch (el->g.tok) { 1581 case zx_hrxml_CopyrightDates_ELEM: 1582 if (!x->CopyrightDates) 1583 x->CopyrightDates = (struct zx_hrxml_CopyrightDates_s*)el; 1584 return 1; 1585 case zx_hrxml_CopyrightText_ELEM: 1586 if (!x->CopyrightText) 1587 x->CopyrightText = el; 1588 return 1; 1589 1590 default: return 0; 1591 } 1592 } 1593 1594 1595 1596 1597 int zx_DEC_ATTR_hrxml_CopyrightDates(struct zx_ctx* c, struct zx_hrxml_CopyrightDates_s* x) 1598 { 1599 switch (x->gg.attr->g.tok) { 1600 1601 default: return 0; 1602 } 1603 } 1604 1605 int zx_DEC_ELEM_hrxml_CopyrightDates(struct zx_ctx* c, struct zx_hrxml_CopyrightDates_s* x) 1606 { 1607 struct zx_elem_s* el = x->gg.kids; 1608 switch (el->g.tok) { 1609 case zx_hrxml_OriginalDate_ELEM: 1610 if (!x->OriginalDate) 1611 x->OriginalDate = (struct zx_hrxml_OriginalDate_s*)el; 1612 return 1; 1613 case zx_hrxml_MostRecentDate_ELEM: 1614 if (!x->MostRecentDate) 1615 x->MostRecentDate = (struct zx_hrxml_MostRecentDate_s*)el; 1616 return 1; 1617 1618 default: return 0; 1619 } 1620 } 1621 1622 1623 1624 1625 int zx_DEC_ATTR_hrxml_DatesOfAttendance(struct zx_ctx* c, struct zx_hrxml_DatesOfAttendance_s* x) 1626 { 1627 switch (x->gg.attr->g.tok) { 1628 case zx_currentlyEnrolled_ATTR: x->currentlyEnrolled = x->gg.attr; return 1; 1629 case zx_enrollmentStatus_ATTR: x->enrollmentStatus = x->gg.attr; return 1; 1630 case zx_studentInGoodStanding_ATTR: x->studentInGoodStanding = x->gg.attr; return 1; 1631 1632 default: return 0; 1633 } 1634 } 1635 1636 int zx_DEC_ELEM_hrxml_DatesOfAttendance(struct zx_ctx* c, struct zx_hrxml_DatesOfAttendance_s* x) 1637 { 1638 struct zx_elem_s* el = x->gg.kids; 1639 switch (el->g.tok) { 1640 case zx_hrxml_StartDate_ELEM: 1641 if (!x->StartDate) 1642 x->StartDate = (struct zx_hrxml_StartDate_s*)el; 1643 return 1; 1644 case zx_hrxml_EndDate_ELEM: 1645 if (!x->EndDate) 1646 x->EndDate = (struct zx_hrxml_EndDate_s*)el; 1647 return 1; 1648 1649 default: return 0; 1650 } 1651 } 1652 1653 1654 1655 1656 int zx_DEC_ATTR_hrxml_DatesOfService(struct zx_ctx* c, struct zx_hrxml_DatesOfService_s* x) 1657 { 1658 switch (x->gg.attr->g.tok) { 1659 1660 default: return 0; 1661 } 1662 } 1663 1664 int zx_DEC_ELEM_hrxml_DatesOfService(struct zx_ctx* c, struct zx_hrxml_DatesOfService_s* x) 1665 { 1666 struct zx_elem_s* el = x->gg.kids; 1667 switch (el->g.tok) { 1668 case zx_hrxml_StartDate_ELEM: 1669 if (!x->StartDate) 1670 x->StartDate = (struct zx_hrxml_StartDate_s*)el; 1671 return 1; 1672 case zx_hrxml_EndDate_ELEM: 1673 if (!x->EndDate) 1674 x->EndDate = (struct zx_hrxml_EndDate_s*)el; 1675 return 1; 1676 1677 default: return 0; 1678 } 1679 } 1680 1681 1682 1683 1684 int zx_DEC_ATTR_hrxml_Degree(struct zx_ctx* c, struct zx_hrxml_Degree_s* x) 1685 { 1686 switch (x->gg.attr->g.tok) { 1687 case zx_degreeType_ATTR: x->degreeType = x->gg.attr; return 1; 1688 case zx_examPassed_ATTR: x->examPassed = x->gg.attr; return 1; 1689 case zx_graduatingDegree_ATTR: x->graduatingDegree = x->gg.attr; return 1; 1690 1691 default: return 0; 1692 } 1693 } 1694 1695 int zx_DEC_ELEM_hrxml_Degree(struct zx_ctx* c, struct zx_hrxml_Degree_s* x) 1696 { 1697 struct zx_elem_s* el = x->gg.kids; 1698 switch (el->g.tok) { 1699 case zx_hrxml_DegreeName_ELEM: 1700 if (!x->DegreeName) 1701 x->DegreeName = (struct zx_hrxml_DegreeName_s*)el; 1702 return 1; 1703 case zx_hrxml_DegreeDate_ELEM: 1704 if (!x->DegreeDate) 1705 x->DegreeDate = (struct zx_hrxml_DegreeDate_s*)el; 1706 return 1; 1707 case zx_hrxml_OtherHonors_ELEM: 1708 if (!x->OtherHonors) 1709 x->OtherHonors = (struct zx_hrxml_OtherHonors_s*)el; 1710 return 1; 1711 case zx_hrxml_DegreeMajor_ELEM: 1712 if (!x->DegreeMajor) 1713 x->DegreeMajor = (struct zx_hrxml_DegreeMajor_s*)el; 1714 return 1; 1715 case zx_hrxml_DegreeMinor_ELEM: 1716 if (!x->DegreeMinor) 1717 x->DegreeMinor = (struct zx_hrxml_DegreeMinor_s*)el; 1718 return 1; 1719 case zx_hrxml_DegreeMeasure_ELEM: 1720 if (!x->DegreeMeasure) 1721 x->DegreeMeasure = (struct zx_hrxml_DegreeMeasure_s*)el; 1722 return 1; 1723 case zx_hrxml_DatesOfAttendance_ELEM: 1724 if (!x->DatesOfAttendance) 1725 x->DatesOfAttendance = (struct zx_hrxml_DatesOfAttendance_s*)el; 1726 return 1; 1727 case zx_hrxml_Comments_ELEM: 1728 if (!x->Comments) 1729 x->Comments = el; 1730 return 1; 1731 case zx_hrxml_DegreeClassification_ELEM: 1732 if (!x->DegreeClassification) 1733 x->DegreeClassification = (struct zx_hrxml_DegreeClassification_s*)el; 1734 return 1; 1735 case zx_hrxml_UserArea_ELEM: 1736 if (!x->UserArea) 1737 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 1738 return 1; 1739 1740 default: return 0; 1741 } 1742 } 1743 1744 1745 1746 1747 int zx_DEC_ATTR_hrxml_DegreeClassification(struct zx_ctx* c, struct zx_hrxml_DegreeClassification_s* x) 1748 { 1749 switch (x->gg.attr->g.tok) { 1750 1751 default: return 0; 1752 } 1753 } 1754 1755 int zx_DEC_ELEM_hrxml_DegreeClassification(struct zx_ctx* c, struct zx_hrxml_DegreeClassification_s* x) 1756 { 1757 struct zx_elem_s* el = x->gg.kids; 1758 switch (el->g.tok) { 1759 case zx_hrxml_Id_ELEM: 1760 if (!x->Id) 1761 x->Id = (struct zx_hrxml_Id_s*)el; 1762 return 1; 1763 case zx_hrxml_Description_ELEM: 1764 if (!x->Description) 1765 x->Description = (struct zx_hrxml_Description_s*)el; 1766 return 1; 1767 1768 default: return 0; 1769 } 1770 } 1771 1772 1773 1774 1775 int zx_DEC_ATTR_hrxml_DegreeDate(struct zx_ctx* c, struct zx_hrxml_DegreeDate_s* x) 1776 { 1777 switch (x->gg.attr->g.tok) { 1778 case zx_dateDescription_ATTR: x->dateDescription = x->gg.attr; return 1; 1779 1780 default: return 0; 1781 } 1782 } 1783 1784 int zx_DEC_ELEM_hrxml_DegreeDate(struct zx_ctx* c, struct zx_hrxml_DegreeDate_s* x) 1785 { 1786 struct zx_elem_s* el = x->gg.kids; 1787 switch (el->g.tok) { 1788 case zx_hrxml_AnyDate_ELEM: 1789 if (!x->AnyDate) 1790 x->AnyDate = el; 1791 return 1; 1792 case zx_hrxml_YearMonth_ELEM: 1793 if (!x->YearMonth) 1794 x->YearMonth = el; 1795 return 1; 1796 case zx_hrxml_Year_ELEM: 1797 if (!x->Year) 1798 x->Year = el; 1799 return 1; 1800 case zx_hrxml_MonthDay_ELEM: 1801 if (!x->MonthDay) 1802 x->MonthDay = el; 1803 return 1; 1804 case zx_hrxml_StringDate_ELEM: 1805 if (!x->StringDate) 1806 x->StringDate = el; 1807 return 1; 1808 1809 default: return 0; 1810 } 1811 } 1812 1813 1814 1815 1816 int zx_DEC_ATTR_hrxml_DegreeMajor(struct zx_ctx* c, struct zx_hrxml_DegreeMajor_s* x) 1817 { 1818 switch (x->gg.attr->g.tok) { 1819 1820 default: return 0; 1821 } 1822 } 1823 1824 int zx_DEC_ELEM_hrxml_DegreeMajor(struct zx_ctx* c, struct zx_hrxml_DegreeMajor_s* x) 1825 { 1826 struct zx_elem_s* el = x->gg.kids; 1827 switch (el->g.tok) { 1828 case zx_hrxml_ProgramId_ELEM: 1829 if (!x->ProgramId) 1830 x->ProgramId = (struct zx_hrxml_ProgramId_s*)el; 1831 return 1; 1832 case zx_hrxml_DegreeConcentration_ELEM: 1833 if (!x->DegreeConcentration) 1834 x->DegreeConcentration = el; 1835 return 1; 1836 case zx_hrxml_Name_ELEM: 1837 if (!x->Name) 1838 x->Name = el; 1839 return 1; 1840 case zx_hrxml_Option_ELEM: 1841 if (!x->Option) 1842 x->Option = el; 1843 return 1; 1844 1845 default: return 0; 1846 } 1847 } 1848 1849 1850 1851 1852 int zx_DEC_ATTR_hrxml_DegreeMeasure(struct zx_ctx* c, struct zx_hrxml_DegreeMeasure_s* x) 1853 { 1854 switch (x->gg.attr->g.tok) { 1855 case zx_measureType_ATTR: x->measureType = x->gg.attr; return 1; 1856 1857 default: return 0; 1858 } 1859 } 1860 1861 int zx_DEC_ELEM_hrxml_DegreeMeasure(struct zx_ctx* c, struct zx_hrxml_DegreeMeasure_s* x) 1862 { 1863 struct zx_elem_s* el = x->gg.kids; 1864 switch (el->g.tok) { 1865 case zx_hrxml_EducationalMeasure_ELEM: 1866 if (!x->EducationalMeasure) 1867 x->EducationalMeasure = (struct zx_hrxml_EducationalMeasure_s*)el; 1868 return 1; 1869 case zx_hrxml_AcademicCreditCode_ELEM: 1870 if (!x->AcademicCreditCode) 1871 x->AcademicCreditCode = el; 1872 return 1; 1873 case zx_hrxml_CourseLevelCode_ELEM: 1874 if (!x->CourseLevelCode) 1875 x->CourseLevelCode = el; 1876 return 1; 1877 case zx_hrxml_CumulativeSummaryIndicator_ELEM: 1878 if (!x->CumulativeSummaryIndicator) 1879 x->CumulativeSummaryIndicator = el; 1880 return 1; 1881 case zx_hrxml_AcademicCreditHoursIncluded_ELEM: 1882 if (!x->AcademicCreditHoursIncluded) 1883 x->AcademicCreditHoursIncluded = el; 1884 return 1; 1885 case zx_hrxml_AcademicCreditHoursAttempted_ELEM: 1886 if (!x->AcademicCreditHoursAttempted) 1887 x->AcademicCreditHoursAttempted = el; 1888 return 1; 1889 case zx_hrxml_AcademicCreditHoursEarned_ELEM: 1890 if (!x->AcademicCreditHoursEarned) 1891 x->AcademicCreditHoursEarned = el; 1892 return 1; 1893 case zx_hrxml_ClassRank_ELEM: 1894 if (!x->ClassRank) 1895 x->ClassRank = (struct zx_hrxml_ClassRank_s*)el; 1896 return 1; 1897 1898 default: return 0; 1899 } 1900 } 1901 1902 1903 1904 1905 int zx_DEC_ATTR_hrxml_DegreeMinor(struct zx_ctx* c, struct zx_hrxml_DegreeMinor_s* x) 1906 { 1907 switch (x->gg.attr->g.tok) { 1908 1909 default: return 0; 1910 } 1911 } 1912 1913 int zx_DEC_ELEM_hrxml_DegreeMinor(struct zx_ctx* c, struct zx_hrxml_DegreeMinor_s* x) 1914 { 1915 struct zx_elem_s* el = x->gg.kids; 1916 switch (el->g.tok) { 1917 case zx_hrxml_ProgramId_ELEM: 1918 if (!x->ProgramId) 1919 x->ProgramId = (struct zx_hrxml_ProgramId_s*)el; 1920 return 1; 1921 case zx_hrxml_Name_ELEM: 1922 if (!x->Name) 1923 x->Name = el; 1924 return 1; 1925 1926 default: return 0; 1927 } 1928 } 1929 1930 1931 1932 1933 int zx_DEC_ATTR_hrxml_DegreeName(struct zx_ctx* c, struct zx_hrxml_DegreeName_s* x) 1934 { 1935 switch (x->gg.attr->g.tok) { 1936 case zx_academicHonors_ATTR: x->academicHonors = x->gg.attr; return 1; 1937 case zx_honorsProgram_ATTR: x->honorsProgram = x->gg.attr; return 1; 1938 1939 default: return 0; 1940 } 1941 } 1942 1943 int zx_DEC_ELEM_hrxml_DegreeName(struct zx_ctx* c, struct zx_hrxml_DegreeName_s* x) 1944 { 1945 struct zx_elem_s* el = x->gg.kids; 1946 switch (el->g.tok) { 1947 1948 default: return 0; 1949 } 1950 } 1951 1952 1953 1954 1955 int zx_DEC_ATTR_hrxml_DeliveryAddress(struct zx_ctx* c, struct zx_hrxml_DeliveryAddress_s* x) 1956 { 1957 switch (x->gg.attr->g.tok) { 1958 1959 default: return 0; 1960 } 1961 } 1962 1963 int zx_DEC_ELEM_hrxml_DeliveryAddress(struct zx_ctx* c, struct zx_hrxml_DeliveryAddress_s* x) 1964 { 1965 struct zx_elem_s* el = x->gg.kids; 1966 switch (el->g.tok) { 1967 case zx_hrxml_AddressLine_ELEM: 1968 if (!x->AddressLine) 1969 x->AddressLine = el; 1970 return 1; 1971 case zx_hrxml_StreetName_ELEM: 1972 if (!x->StreetName) 1973 x->StreetName = el; 1974 return 1; 1975 case zx_hrxml_BuildingNumber_ELEM: 1976 if (!x->BuildingNumber) 1977 x->BuildingNumber = el; 1978 return 1; 1979 case zx_hrxml_Unit_ELEM: 1980 if (!x->Unit) 1981 x->Unit = el; 1982 return 1; 1983 case zx_hrxml_PostOfficeBox_ELEM: 1984 if (!x->PostOfficeBox) 1985 x->PostOfficeBox = el; 1986 return 1; 1987 1988 default: return 0; 1989 } 1990 } 1991 1992 1993 1994 1995 int zx_DEC_ATTR_hrxml_DemographicDescriptors(struct zx_ctx* c, struct zx_hrxml_DemographicDescriptors_s* x) 1996 { 1997 switch (x->gg.attr->g.tok) { 1998 1999 default: return 0; 2000 } 2001 } 2002 2003 int zx_DEC_ELEM_hrxml_DemographicDescriptors(struct zx_ctx* c, struct zx_hrxml_DemographicDescriptors_s* x) 2004 { 2005 struct zx_elem_s* el = x->gg.kids; 2006 switch (el->g.tok) { 2007 case zx_hrxml_Race_ELEM: 2008 if (!x->Race) 2009 x->Race = el; 2010 return 1; 2011 case zx_hrxml_Ethnicity_ELEM: 2012 if (!x->Ethnicity) 2013 x->Ethnicity = el; 2014 return 1; 2015 case zx_hrxml_Nationality_ELEM: 2016 if (!x->Nationality) 2017 x->Nationality = el; 2018 return 1; 2019 case zx_hrxml_PrimaryLanguage_ELEM: 2020 if (!x->PrimaryLanguage) 2021 x->PrimaryLanguage = (struct zx_hrxml_PrimaryLanguage_s*)el; 2022 return 1; 2023 case zx_hrxml_BirthPlace_ELEM: 2024 if (!x->BirthPlace) 2025 x->BirthPlace = el; 2026 return 1; 2027 case zx_hrxml_Religion_ELEM: 2028 if (!x->Religion) 2029 x->Religion = el; 2030 return 1; 2031 case zx_hrxml_MaritalStatus_ELEM: 2032 if (!x->MaritalStatus) 2033 x->MaritalStatus = el; 2034 return 1; 2035 case zx_hrxml_ChildrenInfo_ELEM: 2036 if (!x->ChildrenInfo) 2037 x->ChildrenInfo = (struct zx_hrxml_ChildrenInfo_s*)el; 2038 return 1; 2039 case zx_hrxml_UserArea_ELEM: 2040 if (!x->UserArea) 2041 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 2042 return 1; 2043 2044 default: return 0; 2045 } 2046 } 2047 2048 2049 2050 2051 int zx_DEC_ATTR_hrxml_Description(struct zx_ctx* c, struct zx_hrxml_Description_s* x) 2052 { 2053 switch (x->gg.attr->g.tok) { 2054 case zx_lang_ATTR|zx_xml_NS: x->lang = x->gg.attr; return 1; 2055 2056 default: return 0; 2057 } 2058 } 2059 2060 int zx_DEC_ELEM_hrxml_Description(struct zx_ctx* c, struct zx_hrxml_Description_s* x) 2061 { 2062 struct zx_elem_s* el = x->gg.kids; 2063 switch (el->g.tok) { 2064 2065 default: return 0; 2066 } 2067 } 2068 2069 2070 2071 2072 int zx_DEC_ATTR_hrxml_Details(struct zx_ctx* c, struct zx_hrxml_Details_s* x) 2073 { 2074 switch (x->gg.attr->g.tok) { 2075 case zx_type_ATTR: x->type = x->gg.attr; return 1; 2076 case zx_lang_ATTR|zx_xml_NS: x->lang = x->gg.attr; return 1; 2077 2078 default: return 0; 2079 } 2080 } 2081 2082 int zx_DEC_ELEM_hrxml_Details(struct zx_ctx* c, struct zx_hrxml_Details_s* x) 2083 { 2084 struct zx_elem_s* el = x->gg.kids; 2085 switch (el->g.tok) { 2086 2087 default: return 0; 2088 } 2089 } 2090 2091 2092 2093 2094 int zx_DEC_ATTR_hrxml_DisabilityInfo(struct zx_ctx* c, struct zx_hrxml_DisabilityInfo_s* x) 2095 { 2096 switch (x->gg.attr->g.tok) { 2097 2098 default: return 0; 2099 } 2100 } 2101 2102 int zx_DEC_ELEM_hrxml_DisabilityInfo(struct zx_ctx* c, struct zx_hrxml_DisabilityInfo_s* x) 2103 { 2104 struct zx_elem_s* el = x->gg.kids; 2105 switch (el->g.tok) { 2106 case zx_hrxml_LevelOfDisability_ELEM: 2107 if (!x->LevelOfDisability) 2108 x->LevelOfDisability = el; 2109 return 1; 2110 case zx_hrxml_Percentage_ELEM: 2111 if (!x->Percentage) 2112 x->Percentage = el; 2113 return 1; 2114 case zx_hrxml_Type_ELEM: 2115 if (!x->Type) 2116 x->Type = el; 2117 return 1; 2118 case zx_hrxml_AccommodationsNeeded_ELEM: 2119 if (!x->AccommodationsNeeded) 2120 x->AccommodationsNeeded = el; 2121 return 1; 2122 2123 default: return 0; 2124 } 2125 } 2126 2127 2128 2129 2130 int zx_DEC_ATTR_hrxml_DistanceMax(struct zx_ctx* c, struct zx_hrxml_DistanceMax_s* x) 2131 { 2132 switch (x->gg.attr->g.tok) { 2133 case zx_unitOfMeasure_ATTR: x->unitOfMeasure = x->gg.attr; return 1; 2134 2135 default: return 0; 2136 } 2137 } 2138 2139 int zx_DEC_ELEM_hrxml_DistanceMax(struct zx_ctx* c, struct zx_hrxml_DistanceMax_s* x) 2140 { 2141 struct zx_elem_s* el = x->gg.kids; 2142 switch (el->g.tok) { 2143 2144 default: return 0; 2145 } 2146 } 2147 2148 2149 2150 2151 int zx_DEC_ATTR_hrxml_DistributeTo(struct zx_ctx* c, struct zx_hrxml_DistributeTo_s* x) 2152 { 2153 switch (x->gg.attr->g.tok) { 2154 2155 default: return 0; 2156 } 2157 } 2158 2159 int zx_DEC_ELEM_hrxml_DistributeTo(struct zx_ctx* c, struct zx_hrxml_DistributeTo_s* x) 2160 { 2161 struct zx_elem_s* el = x->gg.kids; 2162 switch (el->g.tok) { 2163 case zx_hrxml_ContactMethod_ELEM: 2164 if (!x->ContactMethod) 2165 x->ContactMethod = (struct zx_hrxml_ContactMethod_s*)el; 2166 return 1; 2167 2168 default: return 0; 2169 } 2170 } 2171 2172 2173 2174 2175 int zx_DEC_ATTR_hrxml_DoingBusinessAs(struct zx_ctx* c, struct zx_hrxml_DoingBusinessAs_s* x) 2176 { 2177 switch (x->gg.attr->g.tok) { 2178 case zx_lang_ATTR|zx_xml_NS: x->lang = x->gg.attr; return 1; 2179 2180 default: return 0; 2181 } 2182 } 2183 2184 int zx_DEC_ELEM_hrxml_DoingBusinessAs(struct zx_ctx* c, struct zx_hrxml_DoingBusinessAs_s* x) 2185 { 2186 struct zx_elem_s* el = x->gg.kids; 2187 switch (el->g.tok) { 2188 2189 default: return 0; 2190 } 2191 } 2192 2193 2194 2195 2196 int zx_DEC_ATTR_hrxml_DressCode(struct zx_ctx* c, struct zx_hrxml_DressCode_s* x) 2197 { 2198 switch (x->gg.attr->g.tok) { 2199 case zx_suppliedByOrganization_ATTR: x->suppliedByOrganization = x->gg.attr; return 1; 2200 2201 default: return 0; 2202 } 2203 } 2204 2205 int zx_DEC_ELEM_hrxml_DressCode(struct zx_ctx* c, struct zx_hrxml_DressCode_s* x) 2206 { 2207 struct zx_elem_s* el = x->gg.kids; 2208 switch (el->g.tok) { 2209 2210 default: return 0; 2211 } 2212 } 2213 2214 2215 2216 2217 int zx_DEC_ATTR_hrxml_DunsNumber(struct zx_ctx* c, struct zx_hrxml_DunsNumber_s* x) 2218 { 2219 switch (x->gg.attr->g.tok) { 2220 case zx_dunsNumberType_ATTR: x->dunsNumberType = x->gg.attr; return 1; 2221 2222 default: return 0; 2223 } 2224 } 2225 2226 int zx_DEC_ELEM_hrxml_DunsNumber(struct zx_ctx* c, struct zx_hrxml_DunsNumber_s* x) 2227 { 2228 struct zx_elem_s* el = x->gg.kids; 2229 switch (el->g.tok) { 2230 2231 default: return 0; 2232 } 2233 } 2234 2235 2236 2237 2238 int zx_DEC_ATTR_hrxml_EEOCJobCategory(struct zx_ctx* c, struct zx_hrxml_EEOCJobCategory_s* x) 2239 { 2240 switch (x->gg.attr->g.tok) { 2241 2242 default: return 0; 2243 } 2244 } 2245 2246 int zx_DEC_ELEM_hrxml_EEOCJobCategory(struct zx_ctx* c, struct zx_hrxml_EEOCJobCategory_s* x) 2247 { 2248 struct zx_elem_s* el = x->gg.kids; 2249 switch (el->g.tok) { 2250 case zx_hrxml_StandardValue_ELEM: 2251 if (!x->StandardValue) 2252 x->StandardValue = el; 2253 return 1; 2254 case zx_hrxml_NonStandardValue_ELEM: 2255 if (!x->NonStandardValue) 2256 x->NonStandardValue = el; 2257 return 1; 2258 2259 default: return 0; 2260 } 2261 } 2262 2263 2264 2265 2266 int zx_DEC_ATTR_hrxml_EducationHistory(struct zx_ctx* c, struct zx_hrxml_EducationHistory_s* x) 2267 { 2268 switch (x->gg.attr->g.tok) { 2269 2270 default: return 0; 2271 } 2272 } 2273 2274 int zx_DEC_ELEM_hrxml_EducationHistory(struct zx_ctx* c, struct zx_hrxml_EducationHistory_s* x) 2275 { 2276 struct zx_elem_s* el = x->gg.kids; 2277 switch (el->g.tok) { 2278 case zx_hrxml_SchoolOrInstitution_ELEM: 2279 if (!x->SchoolOrInstitution) 2280 x->SchoolOrInstitution = (struct zx_hrxml_SchoolOrInstitution_s*)el; 2281 return 1; 2282 2283 default: return 0; 2284 } 2285 } 2286 2287 2288 2289 2290 int zx_DEC_ATTR_hrxml_EducationalMeasure(struct zx_ctx* c, struct zx_hrxml_EducationalMeasure_s* x) 2291 { 2292 switch (x->gg.attr->g.tok) { 2293 2294 default: return 0; 2295 } 2296 } 2297 2298 int zx_DEC_ELEM_hrxml_EducationalMeasure(struct zx_ctx* c, struct zx_hrxml_EducationalMeasure_s* x) 2299 { 2300 struct zx_elem_s* el = x->gg.kids; 2301 switch (el->g.tok) { 2302 case zx_hrxml_MeasureSystem_ELEM: 2303 if (!x->MeasureSystem) 2304 x->MeasureSystem = el; 2305 return 1; 2306 case zx_hrxml_MeasureValue_ELEM: 2307 if (!x->MeasureValue) 2308 x->MeasureValue = el; 2309 return 1; 2310 case zx_hrxml_LowestPossibleValue_ELEM: 2311 if (!x->LowestPossibleValue) 2312 x->LowestPossibleValue = (struct zx_hrxml_LowestPossibleValue_s*)el; 2313 return 1; 2314 case zx_hrxml_HighestPossibleValue_ELEM: 2315 if (!x->HighestPossibleValue) 2316 x->HighestPossibleValue = (struct zx_hrxml_HighestPossibleValue_s*)el; 2317 return 1; 2318 case zx_hrxml_ExcessiveValueIndicator_ELEM: 2319 if (!x->ExcessiveValueIndicator) 2320 x->ExcessiveValueIndicator = el; 2321 return 1; 2322 case zx_hrxml_GoodStudentIndicator_ELEM: 2323 if (!x->GoodStudentIndicator) 2324 x->GoodStudentIndicator = el; 2325 return 1; 2326 2327 default: return 0; 2328 } 2329 } 2330 2331 2332 2333 2334 int zx_DEC_ATTR_hrxml_EffectiveDate(struct zx_ctx* c, struct zx_hrxml_EffectiveDate_s* x) 2335 { 2336 switch (x->gg.attr->g.tok) { 2337 2338 default: return 0; 2339 } 2340 } 2341 2342 int zx_DEC_ELEM_hrxml_EffectiveDate(struct zx_ctx* c, struct zx_hrxml_EffectiveDate_s* x) 2343 { 2344 struct zx_elem_s* el = x->gg.kids; 2345 switch (el->g.tok) { 2346 case zx_hrxml_StartDate_ELEM: 2347 if (!x->StartDate) 2348 x->StartDate = (struct zx_hrxml_StartDate_s*)el; 2349 return 1; 2350 case zx_hrxml_EndDate_ELEM: 2351 if (!x->EndDate) 2352 x->EndDate = (struct zx_hrxml_EndDate_s*)el; 2353 return 1; 2354 2355 default: return 0; 2356 } 2357 } 2358 2359 2360 2361 2362 int zx_DEC_ATTR_hrxml_EmployerContactInfo(struct zx_ctx* c, struct zx_hrxml_EmployerContactInfo_s* x) 2363 { 2364 switch (x->gg.attr->g.tok) { 2365 case zx_contactType_ATTR: x->contactType = x->gg.attr; return 1; 2366 2367 default: return 0; 2368 } 2369 } 2370 2371 int zx_DEC_ELEM_hrxml_EmployerContactInfo(struct zx_ctx* c, struct zx_hrxml_EmployerContactInfo_s* x) 2372 { 2373 struct zx_elem_s* el = x->gg.kids; 2374 switch (el->g.tok) { 2375 case zx_hrxml_PersonName_ELEM: 2376 if (!x->PersonName) 2377 x->PersonName = (struct zx_hrxml_PersonName_s*)el; 2378 return 1; 2379 case zx_hrxml_ContactMethod_ELEM: 2380 if (!x->ContactMethod) 2381 x->ContactMethod = (struct zx_hrxml_ContactMethod_s*)el; 2382 return 1; 2383 case zx_hrxml_LocationSummary_ELEM: 2384 if (!x->LocationSummary) 2385 x->LocationSummary = (struct zx_hrxml_LocationSummary_s*)el; 2386 return 1; 2387 case zx_hrxml_InternetDomainName_ELEM: 2388 if (!x->InternetDomainName) 2389 x->InternetDomainName = (struct zx_hrxml_InternetDomainName_s*)el; 2390 return 1; 2391 2392 default: return 0; 2393 } 2394 } 2395 2396 2397 2398 2399 int zx_DEC_ATTR_hrxml_EmployerOrg(struct zx_ctx* c, struct zx_hrxml_EmployerOrg_s* x) 2400 { 2401 switch (x->gg.attr->g.tok) { 2402 case zx_employerOrgType_ATTR: x->employerOrgType = x->gg.attr; return 1; 2403 2404 default: return 0; 2405 } 2406 } 2407 2408 int zx_DEC_ELEM_hrxml_EmployerOrg(struct zx_ctx* c, struct zx_hrxml_EmployerOrg_s* x) 2409 { 2410 struct zx_elem_s* el = x->gg.kids; 2411 switch (el->g.tok) { 2412 case zx_hrxml_EmployerOrgName_ELEM: 2413 if (!x->EmployerOrgName) 2414 x->EmployerOrgName = el; 2415 return 1; 2416 case zx_hrxml_EmployerContactInfo_ELEM: 2417 if (!x->EmployerContactInfo) 2418 x->EmployerContactInfo = (struct zx_hrxml_EmployerContactInfo_s*)el; 2419 return 1; 2420 case zx_hrxml_PositionHistory_ELEM: 2421 if (!x->PositionHistory) 2422 x->PositionHistory = (struct zx_hrxml_PositionHistory_s*)el; 2423 return 1; 2424 case zx_hrxml_UserArea_ELEM: 2425 if (!x->UserArea) 2426 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 2427 return 1; 2428 2429 default: return 0; 2430 } 2431 } 2432 2433 2434 2435 2436 int zx_DEC_ATTR_hrxml_EmploymentHistory(struct zx_ctx* c, struct zx_hrxml_EmploymentHistory_s* x) 2437 { 2438 switch (x->gg.attr->g.tok) { 2439 2440 default: return 0; 2441 } 2442 } 2443 2444 int zx_DEC_ELEM_hrxml_EmploymentHistory(struct zx_ctx* c, struct zx_hrxml_EmploymentHistory_s* x) 2445 { 2446 struct zx_elem_s* el = x->gg.kids; 2447 switch (el->g.tok) { 2448 case zx_hrxml_EmployerOrg_ELEM: 2449 if (!x->EmployerOrg) 2450 x->EmployerOrg = (struct zx_hrxml_EmployerOrg_s*)el; 2451 return 1; 2452 2453 default: return 0; 2454 } 2455 } 2456 2457 2458 2459 2460 int zx_DEC_ATTR_hrxml_EndDate(struct zx_ctx* c, struct zx_hrxml_EndDate_s* x) 2461 { 2462 switch (x->gg.attr->g.tok) { 2463 case zx_dateDescription_ATTR: x->dateDescription = x->gg.attr; return 1; 2464 2465 default: return 0; 2466 } 2467 } 2468 2469 int zx_DEC_ELEM_hrxml_EndDate(struct zx_ctx* c, struct zx_hrxml_EndDate_s* x) 2470 { 2471 struct zx_elem_s* el = x->gg.kids; 2472 switch (el->g.tok) { 2473 case zx_hrxml_AnyDate_ELEM: 2474 if (!x->AnyDate) 2475 x->AnyDate = el; 2476 return 1; 2477 case zx_hrxml_YearMonth_ELEM: 2478 if (!x->YearMonth) 2479 x->YearMonth = el; 2480 return 1; 2481 case zx_hrxml_Year_ELEM: 2482 if (!x->Year) 2483 x->Year = el; 2484 return 1; 2485 case zx_hrxml_MonthDay_ELEM: 2486 if (!x->MonthDay) 2487 x->MonthDay = el; 2488 return 1; 2489 case zx_hrxml_StringDate_ELEM: 2490 if (!x->StringDate) 2491 x->StringDate = el; 2492 return 1; 2493 2494 default: return 0; 2495 } 2496 } 2497 2498 2499 2500 2501 int zx_DEC_ATTR_hrxml_EndingCompensation(struct zx_ctx* c, struct zx_hrxml_EndingCompensation_s* x) 2502 { 2503 switch (x->gg.attr->g.tok) { 2504 case zx_currency_ATTR: x->currency = x->gg.attr; return 1; 2505 case zx_intervalType_ATTR: x->intervalType = x->gg.attr; return 1; 2506 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 2507 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 2508 2509 default: return 0; 2510 } 2511 } 2512 2513 int zx_DEC_ELEM_hrxml_EndingCompensation(struct zx_ctx* c, struct zx_hrxml_EndingCompensation_s* x) 2514 { 2515 struct zx_elem_s* el = x->gg.kids; 2516 switch (el->g.tok) { 2517 2518 default: return 0; 2519 } 2520 } 2521 2522 2523 2524 2525 int zx_DEC_ATTR_hrxml_EnvironmentId(struct zx_ctx* c, struct zx_hrxml_EnvironmentId_s* x) 2526 { 2527 switch (x->gg.attr->g.tok) { 2528 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 2529 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 2530 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 2531 2532 default: return 0; 2533 } 2534 } 2535 2536 int zx_DEC_ELEM_hrxml_EnvironmentId(struct zx_ctx* c, struct zx_hrxml_EnvironmentId_s* x) 2537 { 2538 struct zx_elem_s* el = x->gg.kids; 2539 switch (el->g.tok) { 2540 case zx_hrxml_IdValue_ELEM: 2541 if (!x->IdValue) 2542 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 2543 return 1; 2544 2545 default: return 0; 2546 } 2547 } 2548 2549 2550 2551 2552 int zx_DEC_ATTR_hrxml_EvidenceId(struct zx_ctx* c, struct zx_hrxml_EvidenceId_s* x) 2553 { 2554 switch (x->gg.attr->g.tok) { 2555 case zx_description_ATTR: x->description = x->gg.attr; return 1; 2556 case zx_id_ATTR: x->id = x->gg.attr; return 1; 2557 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 2558 2559 default: return 0; 2560 } 2561 } 2562 2563 int zx_DEC_ELEM_hrxml_EvidenceId(struct zx_ctx* c, struct zx_hrxml_EvidenceId_s* x) 2564 { 2565 struct zx_elem_s* el = x->gg.kids; 2566 switch (el->g.tok) { 2567 2568 default: return 0; 2569 } 2570 } 2571 2572 2573 2574 2575 int zx_DEC_ATTR_hrxml_ExpatriateBenefits(struct zx_ctx* c, struct zx_hrxml_ExpatriateBenefits_s* x) 2576 { 2577 switch (x->gg.attr->g.tok) { 2578 2579 default: return 0; 2580 } 2581 } 2582 2583 int zx_DEC_ELEM_hrxml_ExpatriateBenefits(struct zx_ctx* c, struct zx_hrxml_ExpatriateBenefits_s* x) 2584 { 2585 struct zx_elem_s* el = x->gg.kids; 2586 switch (el->g.tok) { 2587 case zx_hrxml_ExpatriateBenefitsOffered_ELEM: 2588 if (!x->ExpatriateBenefitsOffered) 2589 x->ExpatriateBenefitsOffered = el; 2590 return 1; 2591 case zx_hrxml_ExpatriateBenefitList_ELEM: 2592 if (!x->ExpatriateBenefitList) 2593 x->ExpatriateBenefitList = el; 2594 return 1; 2595 2596 default: return 0; 2597 } 2598 } 2599 2600 2601 2602 2603 int zx_DEC_ATTR_hrxml_FamilyName(struct zx_ctx* c, struct zx_hrxml_FamilyName_s* x) 2604 { 2605 switch (x->gg.attr->g.tok) { 2606 case zx_prefix_ATTR: x->prefix = x->gg.attr; return 1; 2607 case zx_primary_ATTR: x->primary = x->gg.attr; return 1; 2608 2609 default: return 0; 2610 } 2611 } 2612 2613 int zx_DEC_ELEM_hrxml_FamilyName(struct zx_ctx* c, struct zx_hrxml_FamilyName_s* x) 2614 { 2615 struct zx_elem_s* el = x->gg.kids; 2616 switch (el->g.tok) { 2617 2618 default: return 0; 2619 } 2620 } 2621 2622 2623 2624 2625 int zx_DEC_ATTR_hrxml_Fax(struct zx_ctx* c, struct zx_hrxml_Fax_s* x) 2626 { 2627 switch (x->gg.attr->g.tok) { 2628 2629 default: return 0; 2630 } 2631 } 2632 2633 int zx_DEC_ELEM_hrxml_Fax(struct zx_ctx* c, struct zx_hrxml_Fax_s* x) 2634 { 2635 struct zx_elem_s* el = x->gg.kids; 2636 switch (el->g.tok) { 2637 case zx_hrxml_FormattedNumber_ELEM: 2638 if (!x->FormattedNumber) 2639 x->FormattedNumber = el; 2640 return 1; 2641 2642 default: return 0; 2643 } 2644 } 2645 2646 2647 2648 2649 int zx_DEC_ATTR_hrxml_FirstIssuedDate(struct zx_ctx* c, struct zx_hrxml_FirstIssuedDate_s* x) 2650 { 2651 switch (x->gg.attr->g.tok) { 2652 case zx_dateDescription_ATTR: x->dateDescription = x->gg.attr; return 1; 2653 2654 default: return 0; 2655 } 2656 } 2657 2658 int zx_DEC_ELEM_hrxml_FirstIssuedDate(struct zx_ctx* c, struct zx_hrxml_FirstIssuedDate_s* x) 2659 { 2660 struct zx_elem_s* el = x->gg.kids; 2661 switch (el->g.tok) { 2662 case zx_hrxml_AnyDate_ELEM: 2663 if (!x->AnyDate) 2664 x->AnyDate = el; 2665 return 1; 2666 case zx_hrxml_YearMonth_ELEM: 2667 if (!x->YearMonth) 2668 x->YearMonth = el; 2669 return 1; 2670 case zx_hrxml_Year_ELEM: 2671 if (!x->Year) 2672 x->Year = el; 2673 return 1; 2674 case zx_hrxml_MonthDay_ELEM: 2675 if (!x->MonthDay) 2676 x->MonthDay = el; 2677 return 1; 2678 case zx_hrxml_StringDate_ELEM: 2679 if (!x->StringDate) 2680 x->StringDate = el; 2681 return 1; 2682 2683 default: return 0; 2684 } 2685 } 2686 2687 2688 2689 2690 int zx_DEC_ATTR_hrxml_FormattedPublicationDescription(struct zx_ctx* c, struct zx_hrxml_FormattedPublicationDescription_s* x) 2691 { 2692 switch (x->gg.attr->g.tok) { 2693 case zx_type_ATTR: x->type = x->gg.attr; return 1; 2694 2695 default: return 0; 2696 } 2697 } 2698 2699 int zx_DEC_ELEM_hrxml_FormattedPublicationDescription(struct zx_ctx* c, struct zx_hrxml_FormattedPublicationDescription_s* x) 2700 { 2701 struct zx_elem_s* el = x->gg.kids; 2702 switch (el->g.tok) { 2703 2704 default: return 0; 2705 } 2706 } 2707 2708 2709 2710 2711 int zx_DEC_ATTR_hrxml_Height(struct zx_ctx* c, struct zx_hrxml_Height_s* x) 2712 { 2713 switch (x->gg.attr->g.tok) { 2714 case zx_unitOfMeasure_ATTR: x->unitOfMeasure = x->gg.attr; return 1; 2715 2716 default: return 0; 2717 } 2718 } 2719 2720 int zx_DEC_ELEM_hrxml_Height(struct zx_ctx* c, struct zx_hrxml_Height_s* x) 2721 { 2722 struct zx_elem_s* el = x->gg.kids; 2723 switch (el->g.tok) { 2724 2725 default: return 0; 2726 } 2727 } 2728 2729 2730 2731 2732 int zx_DEC_ATTR_hrxml_HighestPossibleValue(struct zx_ctx* c, struct zx_hrxml_HighestPossibleValue_s* x) 2733 { 2734 switch (x->gg.attr->g.tok) { 2735 2736 default: return 0; 2737 } 2738 } 2739 2740 int zx_DEC_ELEM_hrxml_HighestPossibleValue(struct zx_ctx* c, struct zx_hrxml_HighestPossibleValue_s* x) 2741 { 2742 struct zx_elem_s* el = x->gg.kids; 2743 switch (el->g.tok) { 2744 case zx_hrxml_NumericValue_ELEM: 2745 if (!x->NumericValue) 2746 x->NumericValue = (struct zx_hrxml_NumericValue_s*)el; 2747 return 1; 2748 case zx_hrxml_StringValue_ELEM: 2749 if (!x->StringValue) 2750 x->StringValue = (struct zx_hrxml_StringValue_s*)el; 2751 return 1; 2752 2753 default: return 0; 2754 } 2755 } 2756 2757 2758 2759 2760 int zx_DEC_ATTR_hrxml_HorizontalAccuracy(struct zx_ctx* c, struct zx_hrxml_HorizontalAccuracy_s* x) 2761 { 2762 switch (x->gg.attr->g.tok) { 2763 2764 default: return 0; 2765 } 2766 } 2767 2768 int zx_DEC_ELEM_hrxml_HorizontalAccuracy(struct zx_ctx* c, struct zx_hrxml_HorizontalAccuracy_s* x) 2769 { 2770 struct zx_elem_s* el = x->gg.kids; 2771 switch (el->g.tok) { 2772 2773 default: return 0; 2774 } 2775 } 2776 2777 2778 2779 2780 int zx_DEC_ATTR_hrxml_Id(struct zx_ctx* c, struct zx_hrxml_Id_s* x) 2781 { 2782 switch (x->gg.attr->g.tok) { 2783 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 2784 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 2785 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 2786 2787 default: return 0; 2788 } 2789 } 2790 2791 int zx_DEC_ELEM_hrxml_Id(struct zx_ctx* c, struct zx_hrxml_Id_s* x) 2792 { 2793 struct zx_elem_s* el = x->gg.kids; 2794 switch (el->g.tok) { 2795 case zx_hrxml_IdValue_ELEM: 2796 if (!x->IdValue) 2797 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 2798 return 1; 2799 2800 default: return 0; 2801 } 2802 } 2803 2804 2805 2806 2807 int zx_DEC_ATTR_hrxml_IdValue(struct zx_ctx* c, struct zx_hrxml_IdValue_s* x) 2808 { 2809 switch (x->gg.attr->g.tok) { 2810 case zx_name_ATTR: x->name = x->gg.attr; return 1; 2811 2812 default: return 0; 2813 } 2814 } 2815 2816 int zx_DEC_ELEM_hrxml_IdValue(struct zx_ctx* c, struct zx_hrxml_IdValue_s* x) 2817 { 2818 struct zx_elem_s* el = x->gg.kids; 2819 switch (el->g.tok) { 2820 2821 default: return 0; 2822 } 2823 } 2824 2825 2826 2827 2828 int zx_DEC_ATTR_hrxml_IndustryCode(struct zx_ctx* c, struct zx_hrxml_IndustryCode_s* x) 2829 { 2830 switch (x->gg.attr->g.tok) { 2831 case zx_classificationName_ATTR: x->classificationName = x->gg.attr; return 1; 2832 case zx_primaryIndicator_ATTR: x->primaryIndicator = x->gg.attr; return 1; 2833 2834 default: return 0; 2835 } 2836 } 2837 2838 int zx_DEC_ELEM_hrxml_IndustryCode(struct zx_ctx* c, struct zx_hrxml_IndustryCode_s* x) 2839 { 2840 struct zx_elem_s* el = x->gg.kids; 2841 switch (el->g.tok) { 2842 2843 default: return 0; 2844 } 2845 } 2846 2847 2848 2849 2850 int zx_DEC_ATTR_hrxml_Insurance(struct zx_ctx* c, struct zx_hrxml_Insurance_s* x) 2851 { 2852 switch (x->gg.attr->g.tok) { 2853 case zx_type_ATTR: x->type = x->gg.attr; return 1; 2854 2855 default: return 0; 2856 } 2857 } 2858 2859 int zx_DEC_ELEM_hrxml_Insurance(struct zx_ctx* c, struct zx_hrxml_Insurance_s* x) 2860 { 2861 struct zx_elem_s* el = x->gg.kids; 2862 switch (el->g.tok) { 2863 2864 default: return 0; 2865 } 2866 } 2867 2868 2869 2870 2871 int zx_DEC_ATTR_hrxml_InternetDomainName(struct zx_ctx* c, struct zx_hrxml_InternetDomainName_s* x) 2872 { 2873 switch (x->gg.attr->g.tok) { 2874 case zx_primaryIndicator_ATTR: x->primaryIndicator = x->gg.attr; return 1; 2875 2876 default: return 0; 2877 } 2878 } 2879 2880 int zx_DEC_ELEM_hrxml_InternetDomainName(struct zx_ctx* c, struct zx_hrxml_InternetDomainName_s* x) 2881 { 2882 struct zx_elem_s* el = x->gg.kids; 2883 switch (el->g.tok) { 2884 2885 default: return 0; 2886 } 2887 } 2888 2889 2890 2891 2892 int zx_DEC_ATTR_hrxml_Inventors(struct zx_ctx* c, struct zx_hrxml_Inventors_s* x) 2893 { 2894 switch (x->gg.attr->g.tok) { 2895 2896 default: return 0; 2897 } 2898 } 2899 2900 int zx_DEC_ELEM_hrxml_Inventors(struct zx_ctx* c, struct zx_hrxml_Inventors_s* x) 2901 { 2902 struct zx_elem_s* el = x->gg.kids; 2903 switch (el->g.tok) { 2904 case zx_hrxml_InventorName_ELEM: 2905 if (!x->InventorName) 2906 x->InventorName = el; 2907 return 1; 2908 2909 default: return 0; 2910 } 2911 } 2912 2913 2914 2915 2916 int zx_DEC_ATTR_hrxml_IssuingAuthority(struct zx_ctx* c, struct zx_hrxml_IssuingAuthority_s* x) 2917 { 2918 switch (x->gg.attr->g.tok) { 2919 case zx_countryCode_ATTR: x->countryCode = x->gg.attr; return 1; 2920 2921 default: return 0; 2922 } 2923 } 2924 2925 int zx_DEC_ELEM_hrxml_IssuingAuthority(struct zx_ctx* c, struct zx_hrxml_IssuingAuthority_s* x) 2926 { 2927 struct zx_elem_s* el = x->gg.kids; 2928 switch (el->g.tok) { 2929 2930 default: return 0; 2931 } 2932 } 2933 2934 2935 2936 2937 int zx_DEC_ATTR_hrxml_JobCategory(struct zx_ctx* c, struct zx_hrxml_JobCategory_s* x) 2938 { 2939 switch (x->gg.attr->g.tok) { 2940 2941 default: return 0; 2942 } 2943 } 2944 2945 int zx_DEC_ELEM_hrxml_JobCategory(struct zx_ctx* c, struct zx_hrxml_JobCategory_s* x) 2946 { 2947 struct zx_elem_s* el = x->gg.kids; 2948 switch (el->g.tok) { 2949 case zx_hrxml_TaxonomyName_ELEM: 2950 if (!x->TaxonomyName) 2951 x->TaxonomyName = (struct zx_hrxml_TaxonomyName_s*)el; 2952 return 1; 2953 case zx_hrxml_CategoryCode_ELEM: 2954 if (!x->CategoryCode) 2955 x->CategoryCode = el; 2956 return 1; 2957 case zx_hrxml_CategoryDescription_ELEM: 2958 if (!x->CategoryDescription) 2959 x->CategoryDescription = el; 2960 return 1; 2961 case zx_hrxml_Comments_ELEM: 2962 if (!x->Comments) 2963 x->Comments = el; 2964 return 1; 2965 case zx_hrxml_JobCategory_ELEM: 2966 if (!x->JobCategory) 2967 x->JobCategory = (struct zx_hrxml_JobCategory_s*)el; 2968 return 1; 2969 2970 default: return 0; 2971 } 2972 } 2973 2974 2975 2976 2977 int zx_DEC_ATTR_hrxml_JobLevelInfo(struct zx_ctx* c, struct zx_hrxml_JobLevelInfo_s* x) 2978 { 2979 switch (x->gg.attr->g.tok) { 2980 2981 default: return 0; 2982 } 2983 } 2984 2985 int zx_DEC_ELEM_hrxml_JobLevelInfo(struct zx_ctx* c, struct zx_hrxml_JobLevelInfo_s* x) 2986 { 2987 struct zx_elem_s* el = x->gg.kids; 2988 switch (el->g.tok) { 2989 case zx_hrxml_JobPlan_ELEM: 2990 if (!x->JobPlan) 2991 x->JobPlan = el; 2992 return 1; 2993 case zx_hrxml_JobGrade_ELEM: 2994 if (!x->JobGrade) 2995 x->JobGrade = el; 2996 return 1; 2997 case zx_hrxml_JobStep_ELEM: 2998 if (!x->JobStep) 2999 x->JobStep = el; 3000 return 1; 3001 case zx_hrxml_Comments_ELEM: 3002 if (!x->Comments) 3003 x->Comments = el; 3004 return 1; 3005 3006 default: return 0; 3007 } 3008 } 3009 3010 3011 3012 3013 int zx_DEC_ATTR_hrxml_Language(struct zx_ctx* c, struct zx_hrxml_Language_s* x) 3014 { 3015 switch (x->gg.attr->g.tok) { 3016 3017 default: return 0; 3018 } 3019 } 3020 3021 int zx_DEC_ELEM_hrxml_Language(struct zx_ctx* c, struct zx_hrxml_Language_s* x) 3022 { 3023 struct zx_elem_s* el = x->gg.kids; 3024 switch (el->g.tok) { 3025 case zx_hrxml_LanguageCode_ELEM: 3026 if (!x->LanguageCode) 3027 x->LanguageCode = (struct zx_hrxml_LanguageCode_s*)el; 3028 return 1; 3029 case zx_hrxml_Read_ELEM: 3030 if (!x->Read) 3031 x->Read = el; 3032 return 1; 3033 case zx_hrxml_Write_ELEM: 3034 if (!x->Write) 3035 x->Write = el; 3036 return 1; 3037 case zx_hrxml_Speak_ELEM: 3038 if (!x->Speak) 3039 x->Speak = el; 3040 return 1; 3041 case zx_hrxml_Comments_ELEM: 3042 if (!x->Comments) 3043 x->Comments = el; 3044 return 1; 3045 3046 default: return 0; 3047 } 3048 } 3049 3050 3051 3052 3053 int zx_DEC_ATTR_hrxml_LanguageCode(struct zx_ctx* c, struct zx_hrxml_LanguageCode_s* x) 3054 { 3055 switch (x->gg.attr->g.tok) { 3056 3057 default: return 0; 3058 } 3059 } 3060 3061 int zx_DEC_ELEM_hrxml_LanguageCode(struct zx_ctx* c, struct zx_hrxml_LanguageCode_s* x) 3062 { 3063 struct zx_elem_s* el = x->gg.kids; 3064 switch (el->g.tok) { 3065 3066 default: return 0; 3067 } 3068 } 3069 3070 3071 3072 3073 int zx_DEC_ATTR_hrxml_Languages(struct zx_ctx* c, struct zx_hrxml_Languages_s* x) 3074 { 3075 switch (x->gg.attr->g.tok) { 3076 3077 default: return 0; 3078 } 3079 } 3080 3081 int zx_DEC_ELEM_hrxml_Languages(struct zx_ctx* c, struct zx_hrxml_Languages_s* x) 3082 { 3083 struct zx_elem_s* el = x->gg.kids; 3084 switch (el->g.tok) { 3085 case zx_hrxml_Language_ELEM: 3086 if (!x->Language) 3087 x->Language = (struct zx_hrxml_Language_s*)el; 3088 return 1; 3089 3090 default: return 0; 3091 } 3092 } 3093 3094 3095 3096 3097 int zx_DEC_ATTR_hrxml_Latitude(struct zx_ctx* c, struct zx_hrxml_Latitude_s* x) 3098 { 3099 switch (x->gg.attr->g.tok) { 3100 3101 default: return 0; 3102 } 3103 } 3104 3105 int zx_DEC_ELEM_hrxml_Latitude(struct zx_ctx* c, struct zx_hrxml_Latitude_s* x) 3106 { 3107 struct zx_elem_s* el = x->gg.kids; 3108 switch (el->g.tok) { 3109 3110 default: return 0; 3111 } 3112 } 3113 3114 3115 3116 3117 int zx_DEC_ATTR_hrxml_LegalClassification(struct zx_ctx* c, struct zx_hrxml_LegalClassification_s* x) 3118 { 3119 switch (x->gg.attr->g.tok) { 3120 case zx_countryCode_ATTR: x->countryCode = x->gg.attr; return 1; 3121 case zx_ownership_ATTR: x->ownership = x->gg.attr; return 1; 3122 3123 default: return 0; 3124 } 3125 } 3126 3127 int zx_DEC_ELEM_hrxml_LegalClassification(struct zx_ctx* c, struct zx_hrxml_LegalClassification_s* x) 3128 { 3129 struct zx_elem_s* el = x->gg.kids; 3130 switch (el->g.tok) { 3131 3132 default: return 0; 3133 } 3134 } 3135 3136 3137 3138 3139 int zx_DEC_ATTR_hrxml_LegalId(struct zx_ctx* c, struct zx_hrxml_LegalId_s* x) 3140 { 3141 switch (x->gg.attr->g.tok) { 3142 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 3143 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 3144 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 3145 3146 default: return 0; 3147 } 3148 } 3149 3150 int zx_DEC_ELEM_hrxml_LegalId(struct zx_ctx* c, struct zx_hrxml_LegalId_s* x) 3151 { 3152 struct zx_elem_s* el = x->gg.kids; 3153 switch (el->g.tok) { 3154 case zx_hrxml_IdValue_ELEM: 3155 if (!x->IdValue) 3156 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 3157 return 1; 3158 3159 default: return 0; 3160 } 3161 } 3162 3163 3164 3165 3166 int zx_DEC_ATTR_hrxml_LegalIdentifiers(struct zx_ctx* c, struct zx_hrxml_LegalIdentifiers_s* x) 3167 { 3168 switch (x->gg.attr->g.tok) { 3169 3170 default: return 0; 3171 } 3172 } 3173 3174 int zx_DEC_ELEM_hrxml_LegalIdentifiers(struct zx_ctx* c, struct zx_hrxml_LegalIdentifiers_s* x) 3175 { 3176 struct zx_elem_s* el = x->gg.kids; 3177 switch (el->g.tok) { 3178 case zx_hrxml_PersonLegalId_ELEM: 3179 if (!x->PersonLegalId) 3180 x->PersonLegalId = (struct zx_hrxml_PersonLegalId_s*)el; 3181 return 1; 3182 case zx_hrxml_MilitaryStatus_ELEM: 3183 if (!x->MilitaryStatus) 3184 x->MilitaryStatus = (struct zx_hrxml_MilitaryStatus_s*)el; 3185 return 1; 3186 case zx_hrxml_VisaStatus_ELEM: 3187 if (!x->VisaStatus) 3188 x->VisaStatus = (struct zx_hrxml_VisaStatus_s*)el; 3189 return 1; 3190 case zx_hrxml_Citizenship_ELEM: 3191 if (!x->Citizenship) 3192 x->Citizenship = el; 3193 return 1; 3194 case zx_hrxml_Residency_ELEM: 3195 if (!x->Residency) 3196 x->Residency = el; 3197 return 1; 3198 case zx_hrxml_UserArea_ELEM: 3199 if (!x->UserArea) 3200 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 3201 return 1; 3202 3203 default: return 0; 3204 } 3205 } 3206 3207 3208 3209 3210 int zx_DEC_ATTR_hrxml_LicenseOrCertification(struct zx_ctx* c, struct zx_hrxml_LicenseOrCertification_s* x) 3211 { 3212 switch (x->gg.attr->g.tok) { 3213 3214 default: return 0; 3215 } 3216 } 3217 3218 int zx_DEC_ELEM_hrxml_LicenseOrCertification(struct zx_ctx* c, struct zx_hrxml_LicenseOrCertification_s* x) 3219 { 3220 struct zx_elem_s* el = x->gg.kids; 3221 switch (el->g.tok) { 3222 case zx_hrxml_Name_ELEM: 3223 if (!x->Name) 3224 x->Name = el; 3225 return 1; 3226 case zx_hrxml_Id_ELEM: 3227 if (!x->Id) 3228 x->Id = (struct zx_hrxml_Id_s*)el; 3229 return 1; 3230 case zx_hrxml_IssuingAuthority_ELEM: 3231 if (!x->IssuingAuthority) 3232 x->IssuingAuthority = (struct zx_hrxml_IssuingAuthority_s*)el; 3233 return 1; 3234 case zx_hrxml_Description_ELEM: 3235 if (!x->Description) 3236 x->Description = (struct zx_hrxml_Description_s*)el; 3237 return 1; 3238 case zx_hrxml_EffectiveDate_ELEM: 3239 if (!x->EffectiveDate) 3240 x->EffectiveDate = (struct zx_hrxml_EffectiveDate_s*)el; 3241 return 1; 3242 3243 default: return 0; 3244 } 3245 } 3246 3247 3248 3249 3250 int zx_DEC_ATTR_hrxml_LicensesAndCertifications(struct zx_ctx* c, struct zx_hrxml_LicensesAndCertifications_s* x) 3251 { 3252 switch (x->gg.attr->g.tok) { 3253 3254 default: return 0; 3255 } 3256 } 3257 3258 int zx_DEC_ELEM_hrxml_LicensesAndCertifications(struct zx_ctx* c, struct zx_hrxml_LicensesAndCertifications_s* x) 3259 { 3260 struct zx_elem_s* el = x->gg.kids; 3261 switch (el->g.tok) { 3262 case zx_hrxml_LicenseOrCertification_ELEM: 3263 if (!x->LicenseOrCertification) 3264 x->LicenseOrCertification = (struct zx_hrxml_LicenseOrCertification_s*)el; 3265 return 1; 3266 3267 default: return 0; 3268 } 3269 } 3270 3271 3272 3273 3274 int zx_DEC_ATTR_hrxml_List(struct zx_ctx* c, struct zx_hrxml_List_s* x) 3275 { 3276 switch (x->gg.attr->g.tok) { 3277 3278 default: return 0; 3279 } 3280 } 3281 3282 int zx_DEC_ELEM_hrxml_List(struct zx_ctx* c, struct zx_hrxml_List_s* x) 3283 { 3284 struct zx_elem_s* el = x->gg.kids; 3285 switch (el->g.tok) { 3286 case zx_hrxml_Item_ELEM: 3287 if (!x->Item) 3288 x->Item = el; 3289 return 1; 3290 3291 default: return 0; 3292 } 3293 } 3294 3295 3296 3297 3298 int zx_DEC_ATTR_hrxml_LocalInstitutionClassification(struct zx_ctx* c, struct zx_hrxml_LocalInstitutionClassification_s* x) 3299 { 3300 switch (x->gg.attr->g.tok) { 3301 3302 default: return 0; 3303 } 3304 } 3305 3306 int zx_DEC_ELEM_hrxml_LocalInstitutionClassification(struct zx_ctx* c, struct zx_hrxml_LocalInstitutionClassification_s* x) 3307 { 3308 struct zx_elem_s* el = x->gg.kids; 3309 switch (el->g.tok) { 3310 case zx_hrxml_Id_ELEM: 3311 if (!x->Id) 3312 x->Id = (struct zx_hrxml_Id_s*)el; 3313 return 1; 3314 case zx_hrxml_Description_ELEM: 3315 if (!x->Description) 3316 x->Description = (struct zx_hrxml_Description_s*)el; 3317 return 1; 3318 3319 default: return 0; 3320 } 3321 } 3322 3323 3324 3325 3326 int zx_DEC_ATTR_hrxml_LocationSummary(struct zx_ctx* c, struct zx_hrxml_LocationSummary_s* x) 3327 { 3328 switch (x->gg.attr->g.tok) { 3329 3330 default: return 0; 3331 } 3332 } 3333 3334 int zx_DEC_ELEM_hrxml_LocationSummary(struct zx_ctx* c, struct zx_hrxml_LocationSummary_s* x) 3335 { 3336 struct zx_elem_s* el = x->gg.kids; 3337 switch (el->g.tok) { 3338 case zx_hrxml_Municipality_ELEM: 3339 if (!x->Municipality) 3340 x->Municipality = el; 3341 return 1; 3342 case zx_hrxml_Region_ELEM: 3343 if (!x->Region) 3344 x->Region = el; 3345 return 1; 3346 case zx_hrxml_CountryCode_ELEM: 3347 if (!x->CountryCode) 3348 x->CountryCode = el; 3349 return 1; 3350 case zx_hrxml_PostalCode_ELEM: 3351 if (!x->PostalCode) 3352 x->PostalCode = el; 3353 return 1; 3354 3355 default: return 0; 3356 } 3357 } 3358 3359 3360 3361 3362 int zx_DEC_ATTR_hrxml_Longitude(struct zx_ctx* c, struct zx_hrxml_Longitude_s* x) 3363 { 3364 switch (x->gg.attr->g.tok) { 3365 3366 default: return 0; 3367 } 3368 } 3369 3370 int zx_DEC_ELEM_hrxml_Longitude(struct zx_ctx* c, struct zx_hrxml_Longitude_s* x) 3371 { 3372 struct zx_elem_s* el = x->gg.kids; 3373 switch (el->g.tok) { 3374 3375 default: return 0; 3376 } 3377 } 3378 3379 3380 3381 3382 int zx_DEC_ATTR_hrxml_LowestPossibleValue(struct zx_ctx* c, struct zx_hrxml_LowestPossibleValue_s* x) 3383 { 3384 switch (x->gg.attr->g.tok) { 3385 3386 default: return 0; 3387 } 3388 } 3389 3390 int zx_DEC_ELEM_hrxml_LowestPossibleValue(struct zx_ctx* c, struct zx_hrxml_LowestPossibleValue_s* x) 3391 { 3392 struct zx_elem_s* el = x->gg.kids; 3393 switch (el->g.tok) { 3394 case zx_hrxml_NumericValue_ELEM: 3395 if (!x->NumericValue) 3396 x->NumericValue = (struct zx_hrxml_NumericValue_s*)el; 3397 return 1; 3398 case zx_hrxml_StringValue_ELEM: 3399 if (!x->StringValue) 3400 x->StringValue = (struct zx_hrxml_StringValue_s*)el; 3401 return 1; 3402 3403 default: return 0; 3404 } 3405 } 3406 3407 3408 3409 3410 int zx_DEC_ATTR_hrxml_MatchedObjectId(struct zx_ctx* c, struct zx_hrxml_MatchedObjectId_s* x) 3411 { 3412 switch (x->gg.attr->g.tok) { 3413 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 3414 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 3415 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 3416 3417 default: return 0; 3418 } 3419 } 3420 3421 int zx_DEC_ELEM_hrxml_MatchedObjectId(struct zx_ctx* c, struct zx_hrxml_MatchedObjectId_s* x) 3422 { 3423 struct zx_elem_s* el = x->gg.kids; 3424 switch (el->g.tok) { 3425 case zx_hrxml_IdValue_ELEM: 3426 if (!x->IdValue) 3427 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 3428 return 1; 3429 3430 default: return 0; 3431 } 3432 } 3433 3434 3435 3436 3437 int zx_DEC_ATTR_hrxml_Measure(struct zx_ctx* c, struct zx_hrxml_Measure_s* x) 3438 { 3439 switch (x->gg.attr->g.tok) { 3440 case zx_measureType_ATTR: x->measureType = x->gg.attr; return 1; 3441 3442 default: return 0; 3443 } 3444 } 3445 3446 int zx_DEC_ELEM_hrxml_Measure(struct zx_ctx* c, struct zx_hrxml_Measure_s* x) 3447 { 3448 struct zx_elem_s* el = x->gg.kids; 3449 switch (el->g.tok) { 3450 case zx_hrxml_MeasureSystem_ELEM: 3451 if (!x->MeasureSystem) 3452 x->MeasureSystem = el; 3453 return 1; 3454 case zx_hrxml_MeasureValue_ELEM: 3455 if (!x->MeasureValue) 3456 x->MeasureValue = el; 3457 return 1; 3458 3459 default: return 0; 3460 } 3461 } 3462 3463 3464 3465 3466 int zx_DEC_ATTR_hrxml_MilitaryHistory(struct zx_ctx* c, struct zx_hrxml_MilitaryHistory_s* x) 3467 { 3468 switch (x->gg.attr->g.tok) { 3469 3470 default: return 0; 3471 } 3472 } 3473 3474 int zx_DEC_ELEM_hrxml_MilitaryHistory(struct zx_ctx* c, struct zx_hrxml_MilitaryHistory_s* x) 3475 { 3476 struct zx_elem_s* el = x->gg.kids; 3477 switch (el->g.tok) { 3478 case zx_hrxml_CountryServed_ELEM: 3479 if (!x->CountryServed) 3480 x->CountryServed = el; 3481 return 1; 3482 case zx_hrxml_ServiceNumber_ELEM: 3483 if (!x->ServiceNumber) 3484 x->ServiceNumber = (struct zx_hrxml_ServiceNumber_s*)el; 3485 return 1; 3486 case zx_hrxml_ServiceDetail_ELEM: 3487 if (!x->ServiceDetail) 3488 x->ServiceDetail = (struct zx_hrxml_ServiceDetail_s*)el; 3489 return 1; 3490 case zx_hrxml_ServiceStatus_ELEM: 3491 if (!x->ServiceStatus) 3492 x->ServiceStatus = el; 3493 return 1; 3494 case zx_hrxml_Comments_ELEM: 3495 if (!x->Comments) 3496 x->Comments = el; 3497 return 1; 3498 case zx_hrxml_UserArea_ELEM: 3499 if (!x->UserArea) 3500 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 3501 return 1; 3502 3503 default: return 0; 3504 } 3505 } 3506 3507 3508 3509 3510 int zx_DEC_ATTR_hrxml_MilitaryStatus(struct zx_ctx* c, struct zx_hrxml_MilitaryStatus_s* x) 3511 { 3512 switch (x->gg.attr->g.tok) { 3513 case zx_type_ATTR: x->type = x->gg.attr; return 1; 3514 3515 default: return 0; 3516 } 3517 } 3518 3519 int zx_DEC_ELEM_hrxml_MilitaryStatus(struct zx_ctx* c, struct zx_hrxml_MilitaryStatus_s* x) 3520 { 3521 struct zx_elem_s* el = x->gg.kids; 3522 switch (el->g.tok) { 3523 3524 default: return 0; 3525 } 3526 } 3527 3528 3529 3530 3531 int zx_DEC_ATTR_hrxml_Mobile(struct zx_ctx* c, struct zx_hrxml_Mobile_s* x) 3532 { 3533 switch (x->gg.attr->g.tok) { 3534 case zx_smsEnabled_ATTR: x->smsEnabled = x->gg.attr; return 1; 3535 3536 default: return 0; 3537 } 3538 } 3539 3540 int zx_DEC_ELEM_hrxml_Mobile(struct zx_ctx* c, struct zx_hrxml_Mobile_s* x) 3541 { 3542 struct zx_elem_s* el = x->gg.kids; 3543 switch (el->g.tok) { 3544 case zx_hrxml_FormattedNumber_ELEM: 3545 if (!x->FormattedNumber) 3546 x->FormattedNumber = el; 3547 return 1; 3548 3549 default: return 0; 3550 } 3551 } 3552 3553 3554 3555 3556 int zx_DEC_ATTR_hrxml_MostRecentDate(struct zx_ctx* c, struct zx_hrxml_MostRecentDate_s* x) 3557 { 3558 switch (x->gg.attr->g.tok) { 3559 case zx_dateDescription_ATTR: x->dateDescription = x->gg.attr; return 1; 3560 3561 default: return 0; 3562 } 3563 } 3564 3565 int zx_DEC_ELEM_hrxml_MostRecentDate(struct zx_ctx* c, struct zx_hrxml_MostRecentDate_s* x) 3566 { 3567 struct zx_elem_s* el = x->gg.kids; 3568 switch (el->g.tok) { 3569 case zx_hrxml_AnyDate_ELEM: 3570 if (!x->AnyDate) 3571 x->AnyDate = el; 3572 return 1; 3573 case zx_hrxml_YearMonth_ELEM: 3574 if (!x->YearMonth) 3575 x->YearMonth = el; 3576 return 1; 3577 case zx_hrxml_Year_ELEM: 3578 if (!x->Year) 3579 x->Year = el; 3580 return 1; 3581 case zx_hrxml_MonthDay_ELEM: 3582 if (!x->MonthDay) 3583 x->MonthDay = el; 3584 return 1; 3585 case zx_hrxml_StringDate_ELEM: 3586 if (!x->StringDate) 3587 x->StringDate = el; 3588 return 1; 3589 3590 default: return 0; 3591 } 3592 } 3593 3594 3595 3596 3597 int zx_DEC_ATTR_hrxml_NonXMLResume(struct zx_ctx* c, struct zx_hrxml_NonXMLResume_s* x) 3598 { 3599 switch (x->gg.attr->g.tok) { 3600 3601 default: return 0; 3602 } 3603 } 3604 3605 int zx_DEC_ELEM_hrxml_NonXMLResume(struct zx_ctx* c, struct zx_hrxml_NonXMLResume_s* x) 3606 { 3607 struct zx_elem_s* el = x->gg.kids; 3608 switch (el->g.tok) { 3609 case zx_hrxml_TextResume_ELEM: 3610 if (!x->TextResume) 3611 x->TextResume = el; 3612 return 1; 3613 case zx_hrxml_LinkToResume_ELEM: 3614 if (!x->LinkToResume) 3615 x->LinkToResume = el; 3616 return 1; 3617 case zx_hrxml_SupportingMaterials_ELEM: 3618 if (!x->SupportingMaterials) 3619 x->SupportingMaterials = (struct zx_hrxml_SupportingMaterials_s*)el; 3620 return 1; 3621 case zx_hrxml_Comments_ELEM: 3622 if (!x->Comments) 3623 x->Comments = el; 3624 return 1; 3625 case zx_hrxml_RevisionDate_ELEM: 3626 if (!x->RevisionDate) 3627 x->RevisionDate = el; 3628 return 1; 3629 3630 default: return 0; 3631 } 3632 } 3633 3634 3635 3636 3637 int zx_DEC_ATTR_hrxml_NumericValue(struct zx_ctx* c, struct zx_hrxml_NumericValue_s* x) 3638 { 3639 switch (x->gg.attr->g.tok) { 3640 case zx_description_ATTR: x->description = x->gg.attr; return 1; 3641 case zx_interval_ATTR: x->interval = x->gg.attr; return 1; 3642 case zx_maxValue_ATTR: x->maxValue = x->gg.attr; return 1; 3643 case zx_minValue_ATTR: x->minValue = x->gg.attr; return 1; 3644 3645 default: return 0; 3646 } 3647 } 3648 3649 int zx_DEC_ELEM_hrxml_NumericValue(struct zx_ctx* c, struct zx_hrxml_NumericValue_s* x) 3650 { 3651 struct zx_elem_s* el = x->gg.kids; 3652 switch (el->g.tok) { 3653 3654 default: return 0; 3655 } 3656 } 3657 3658 3659 3660 3661 int zx_DEC_ATTR_hrxml_OrgIndustry(struct zx_ctx* c, struct zx_hrxml_OrgIndustry_s* x) 3662 { 3663 switch (x->gg.attr->g.tok) { 3664 case zx_primaryIndicator_ATTR: x->primaryIndicator = x->gg.attr; return 1; 3665 3666 default: return 0; 3667 } 3668 } 3669 3670 int zx_DEC_ELEM_hrxml_OrgIndustry(struct zx_ctx* c, struct zx_hrxml_OrgIndustry_s* x) 3671 { 3672 struct zx_elem_s* el = x->gg.kids; 3673 switch (el->g.tok) { 3674 case zx_hrxml_IndustryDescription_ELEM: 3675 if (!x->IndustryDescription) 3676 x->IndustryDescription = el; 3677 return 1; 3678 case zx_hrxml_IndustryCode_ELEM: 3679 if (!x->IndustryCode) 3680 x->IndustryCode = (struct zx_hrxml_IndustryCode_s*)el; 3681 return 1; 3682 3683 default: return 0; 3684 } 3685 } 3686 3687 3688 3689 3690 int zx_DEC_ATTR_hrxml_OrgInfo(struct zx_ctx* c, struct zx_hrxml_OrgInfo_s* x) 3691 { 3692 switch (x->gg.attr->g.tok) { 3693 3694 default: return 0; 3695 } 3696 } 3697 3698 int zx_DEC_ELEM_hrxml_OrgInfo(struct zx_ctx* c, struct zx_hrxml_OrgInfo_s* x) 3699 { 3700 struct zx_elem_s* el = x->gg.kids; 3701 switch (el->g.tok) { 3702 case zx_hrxml_PositionLocation_ELEM: 3703 if (!x->PositionLocation) 3704 x->PositionLocation = (struct zx_hrxml_PositionLocation_s*)el; 3705 return 1; 3706 case zx_hrxml_WebSite_ELEM: 3707 if (!x->WebSite) 3708 x->WebSite = el; 3709 return 1; 3710 case zx_hrxml_LocationSummary_ELEM: 3711 if (!x->LocationSummary) 3712 x->LocationSummary = (struct zx_hrxml_LocationSummary_s*)el; 3713 return 1; 3714 3715 default: return 0; 3716 } 3717 } 3718 3719 3720 3721 3722 int zx_DEC_ATTR_hrxml_OrgName(struct zx_ctx* c, struct zx_hrxml_OrgName_s* x) 3723 { 3724 switch (x->gg.attr->g.tok) { 3725 case zx_organizationType_ATTR: x->organizationType = x->gg.attr; return 1; 3726 3727 default: return 0; 3728 } 3729 } 3730 3731 int zx_DEC_ELEM_hrxml_OrgName(struct zx_ctx* c, struct zx_hrxml_OrgName_s* x) 3732 { 3733 struct zx_elem_s* el = x->gg.kids; 3734 switch (el->g.tok) { 3735 case zx_hrxml_OrganizationName_ELEM: 3736 if (!x->OrganizationName) 3737 x->OrganizationName = el; 3738 return 1; 3739 case zx_hrxml_OrgName_ELEM: 3740 if (!x->OrgName) 3741 x->OrgName = (struct zx_hrxml_OrgName_s*)el; 3742 return 1; 3743 3744 default: return 0; 3745 } 3746 } 3747 3748 3749 3750 3751 int zx_DEC_ATTR_hrxml_Organization(struct zx_ctx* c, struct zx_hrxml_Organization_s* x) 3752 { 3753 switch (x->gg.attr->g.tok) { 3754 3755 default: return 0; 3756 } 3757 } 3758 3759 int zx_DEC_ELEM_hrxml_Organization(struct zx_ctx* c, struct zx_hrxml_Organization_s* x) 3760 { 3761 struct zx_elem_s* el = x->gg.kids; 3762 switch (el->g.tok) { 3763 3764 default: return 0; 3765 } 3766 } 3767 3768 3769 3770 3771 int zx_DEC_ATTR_hrxml_OrganizationId(struct zx_ctx* c, struct zx_hrxml_OrganizationId_s* x) 3772 { 3773 switch (x->gg.attr->g.tok) { 3774 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 3775 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 3776 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 3777 3778 default: return 0; 3779 } 3780 } 3781 3782 int zx_DEC_ELEM_hrxml_OrganizationId(struct zx_ctx* c, struct zx_hrxml_OrganizationId_s* x) 3783 { 3784 struct zx_elem_s* el = x->gg.kids; 3785 switch (el->g.tok) { 3786 case zx_hrxml_IdValue_ELEM: 3787 if (!x->IdValue) 3788 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 3789 return 1; 3790 3791 default: return 0; 3792 } 3793 } 3794 3795 3796 3797 3798 int zx_DEC_ATTR_hrxml_OrganizationUnit(struct zx_ctx* c, struct zx_hrxml_OrganizationUnit_s* x) 3799 { 3800 switch (x->gg.attr->g.tok) { 3801 case zx_attendanceStatus_ATTR: x->attendanceStatus = x->gg.attr; return 1; 3802 case zx_organizationType_ATTR: x->organizationType = x->gg.attr; return 1; 3803 3804 default: return 0; 3805 } 3806 } 3807 3808 int zx_DEC_ELEM_hrxml_OrganizationUnit(struct zx_ctx* c, struct zx_hrxml_OrganizationUnit_s* x) 3809 { 3810 struct zx_elem_s* el = x->gg.kids; 3811 switch (el->g.tok) { 3812 3813 default: return 0; 3814 } 3815 } 3816 3817 3818 3819 3820 int zx_DEC_ATTR_hrxml_OrganizationalUnit(struct zx_ctx* c, struct zx_hrxml_OrganizationalUnit_s* x) 3821 { 3822 switch (x->gg.attr->g.tok) { 3823 case zx_hierarchicalRole_ATTR: x->hierarchicalRole = x->gg.attr; return 1; 3824 case zx_typeOfGroup_ATTR: x->typeOfGroup = x->gg.attr; return 1; 3825 3826 default: return 0; 3827 } 3828 } 3829 3830 int zx_DEC_ELEM_hrxml_OrganizationalUnit(struct zx_ctx* c, struct zx_hrxml_OrganizationalUnit_s* x) 3831 { 3832 struct zx_elem_s* el = x->gg.kids; 3833 switch (el->g.tok) { 3834 case zx_hrxml_OrganizationalUnitName_ELEM: 3835 if (!x->OrganizationalUnitName) 3836 x->OrganizationalUnitName = el; 3837 return 1; 3838 case zx_hrxml_OrganizationalUnitId_ELEM: 3839 if (!x->OrganizationalUnitId) 3840 x->OrganizationalUnitId = (struct zx_hrxml_OrganizationalUnitId_s*)el; 3841 return 1; 3842 case zx_hrxml_OrganizationId_ELEM: 3843 if (!x->OrganizationId) 3844 x->OrganizationId = (struct zx_hrxml_OrganizationId_s*)el; 3845 return 1; 3846 case zx_hrxml_Description_ELEM: 3847 if (!x->Description) 3848 x->Description = (struct zx_hrxml_Description_s*)el; 3849 return 1; 3850 case zx_hrxml_IndustryCode_ELEM: 3851 if (!x->IndustryCode) 3852 x->IndustryCode = (struct zx_hrxml_IndustryCode_s*)el; 3853 return 1; 3854 case zx_hrxml_AccountingCode_ELEM: 3855 if (!x->AccountingCode) 3856 x->AccountingCode = (struct zx_hrxml_AccountingCode_s*)el; 3857 return 1; 3858 case zx_hrxml_WorkSite_ELEM: 3859 if (!x->WorkSite) 3860 x->WorkSite = (struct zx_hrxml_WorkSite_s*)el; 3861 return 1; 3862 case zx_hrxml_RelatedOrganizationalUnit_ELEM: 3863 if (!x->RelatedOrganizationalUnit) 3864 x->RelatedOrganizationalUnit = (struct zx_hrxml_RelatedOrganizationalUnit_s*)el; 3865 return 1; 3866 case zx_hrxml_PersonMember_ELEM: 3867 if (!x->PersonMember) 3868 x->PersonMember = (struct zx_hrxml_PersonMember_s*)el; 3869 return 1; 3870 case zx_hrxml_UserArea_ELEM: 3871 if (!x->UserArea) 3872 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 3873 return 1; 3874 3875 default: return 0; 3876 } 3877 } 3878 3879 3880 3881 3882 int zx_DEC_ATTR_hrxml_OrganizationalUnitId(struct zx_ctx* c, struct zx_hrxml_OrganizationalUnitId_s* x) 3883 { 3884 switch (x->gg.attr->g.tok) { 3885 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 3886 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 3887 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 3888 3889 default: return 0; 3890 } 3891 } 3892 3893 int zx_DEC_ELEM_hrxml_OrganizationalUnitId(struct zx_ctx* c, struct zx_hrxml_OrganizationalUnitId_s* x) 3894 { 3895 struct zx_elem_s* el = x->gg.kids; 3896 switch (el->g.tok) { 3897 case zx_hrxml_IdValue_ELEM: 3898 if (!x->IdValue) 3899 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 3900 return 1; 3901 3902 default: return 0; 3903 } 3904 } 3905 3906 3907 3908 3909 int zx_DEC_ATTR_hrxml_OriginalDate(struct zx_ctx* c, struct zx_hrxml_OriginalDate_s* x) 3910 { 3911 switch (x->gg.attr->g.tok) { 3912 case zx_dateDescription_ATTR: x->dateDescription = x->gg.attr; return 1; 3913 3914 default: return 0; 3915 } 3916 } 3917 3918 int zx_DEC_ELEM_hrxml_OriginalDate(struct zx_ctx* c, struct zx_hrxml_OriginalDate_s* x) 3919 { 3920 struct zx_elem_s* el = x->gg.kids; 3921 switch (el->g.tok) { 3922 case zx_hrxml_AnyDate_ELEM: 3923 if (!x->AnyDate) 3924 x->AnyDate = el; 3925 return 1; 3926 case zx_hrxml_YearMonth_ELEM: 3927 if (!x->YearMonth) 3928 x->YearMonth = el; 3929 return 1; 3930 case zx_hrxml_Year_ELEM: 3931 if (!x->Year) 3932 x->Year = el; 3933 return 1; 3934 case zx_hrxml_MonthDay_ELEM: 3935 if (!x->MonthDay) 3936 x->MonthDay = el; 3937 return 1; 3938 case zx_hrxml_StringDate_ELEM: 3939 if (!x->StringDate) 3940 x->StringDate = el; 3941 return 1; 3942 3943 default: return 0; 3944 } 3945 } 3946 3947 3948 3949 3950 int zx_DEC_ATTR_hrxml_OtherBenefits(struct zx_ctx* c, struct zx_hrxml_OtherBenefits_s* x) 3951 { 3952 switch (x->gg.attr->g.tok) { 3953 case zx_type_ATTR: x->type = x->gg.attr; return 1; 3954 3955 default: return 0; 3956 } 3957 } 3958 3959 int zx_DEC_ELEM_hrxml_OtherBenefits(struct zx_ctx* c, struct zx_hrxml_OtherBenefits_s* x) 3960 { 3961 struct zx_elem_s* el = x->gg.kids; 3962 switch (el->g.tok) { 3963 3964 default: return 0; 3965 } 3966 } 3967 3968 3969 3970 3971 int zx_DEC_ATTR_hrxml_OtherCompensation(struct zx_ctx* c, struct zx_hrxml_OtherCompensation_s* x) 3972 { 3973 switch (x->gg.attr->g.tok) { 3974 case zx_type_ATTR: x->type = x->gg.attr; return 1; 3975 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 3976 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 3977 3978 default: return 0; 3979 } 3980 } 3981 3982 int zx_DEC_ELEM_hrxml_OtherCompensation(struct zx_ctx* c, struct zx_hrxml_OtherCompensation_s* x) 3983 { 3984 struct zx_elem_s* el = x->gg.kids; 3985 switch (el->g.tok) { 3986 3987 default: return 0; 3988 } 3989 } 3990 3991 3992 3993 3994 int zx_DEC_ATTR_hrxml_OtherDescriptors(struct zx_ctx* c, struct zx_hrxml_OtherDescriptors_s* x) 3995 { 3996 switch (x->gg.attr->g.tok) { 3997 3998 default: return 0; 3999 } 4000 } 4001 4002 int zx_DEC_ELEM_hrxml_OtherDescriptors(struct zx_ctx* c, struct zx_hrxml_OtherDescriptors_s* x) 4003 { 4004 struct zx_elem_s* el = x->gg.kids; 4005 switch (el->g.tok) { 4006 case zx_hrxml_Name_ELEM: 4007 if (!x->Name) 4008 x->Name = el; 4009 return 1; 4010 case zx_hrxml_Applicable_ELEM: 4011 if (!x->Applicable) 4012 x->Applicable = el; 4013 return 1; 4014 case zx_hrxml_Value_ELEM: 4015 if (!x->Value) 4016 x->Value = el; 4017 return 1; 4018 case zx_hrxml_List_ELEM: 4019 if (!x->List) 4020 x->List = (struct zx_hrxml_List_s*)el; 4021 return 1; 4022 4023 default: return 0; 4024 } 4025 } 4026 4027 4028 4029 4030 int zx_DEC_ATTR_hrxml_OtherHonors(struct zx_ctx* c, struct zx_hrxml_OtherHonors_s* x) 4031 { 4032 switch (x->gg.attr->g.tok) { 4033 case zx_type_ATTR: x->type = x->gg.attr; return 1; 4034 4035 default: return 0; 4036 } 4037 } 4038 4039 int zx_DEC_ELEM_hrxml_OtherHonors(struct zx_ctx* c, struct zx_hrxml_OtherHonors_s* x) 4040 { 4041 struct zx_elem_s* el = x->gg.kids; 4042 switch (el->g.tok) { 4043 4044 default: return 0; 4045 } 4046 } 4047 4048 4049 4050 4051 int zx_DEC_ATTR_hrxml_OtherPay(struct zx_ctx* c, struct zx_hrxml_OtherPay_s* x) 4052 { 4053 switch (x->gg.attr->g.tok) { 4054 case zx_currencyCode_ATTR: x->currencyCode = x->gg.attr; return 1; 4055 case zx_otherInterval_ATTR: x->otherInterval = x->gg.attr; return 1; 4056 case zx_otherPayType_ATTR: x->otherPayType = x->gg.attr; return 1; 4057 4058 default: return 0; 4059 } 4060 } 4061 4062 int zx_DEC_ELEM_hrxml_OtherPay(struct zx_ctx* c, struct zx_hrxml_OtherPay_s* x) 4063 { 4064 struct zx_elem_s* el = x->gg.kids; 4065 switch (el->g.tok) { 4066 case zx_hrxml_OtherPayAmountMin_ELEM: 4067 if (!x->OtherPayAmountMin) 4068 x->OtherPayAmountMin = el; 4069 return 1; 4070 case zx_hrxml_OtherPayAmountMax_ELEM: 4071 if (!x->OtherPayAmountMax) 4072 x->OtherPayAmountMax = el; 4073 return 1; 4074 case zx_hrxml_OtherPayCalculation_ELEM: 4075 if (!x->OtherPayCalculation) 4076 x->OtherPayCalculation = el; 4077 return 1; 4078 case zx_hrxml_Comments_ELEM: 4079 if (!x->Comments) 4080 x->Comments = el; 4081 return 1; 4082 4083 default: return 0; 4084 } 4085 } 4086 4087 4088 4089 4090 int zx_DEC_ATTR_hrxml_OtherPublication(struct zx_ctx* c, struct zx_hrxml_OtherPublication_s* x) 4091 { 4092 switch (x->gg.attr->g.tok) { 4093 case zx_type_ATTR: x->type = x->gg.attr; return 1; 4094 4095 default: return 0; 4096 } 4097 } 4098 4099 int zx_DEC_ELEM_hrxml_OtherPublication(struct zx_ctx* c, struct zx_hrxml_OtherPublication_s* x) 4100 { 4101 struct zx_elem_s* el = x->gg.kids; 4102 switch (el->g.tok) { 4103 case zx_hrxml_Title_ELEM: 4104 if (!x->Title) 4105 x->Title = el; 4106 return 1; 4107 case zx_hrxml_Name_ELEM: 4108 if (!x->Name) 4109 x->Name = el; 4110 return 1; 4111 case zx_hrxml_PublicationDate_ELEM: 4112 if (!x->PublicationDate) 4113 x->PublicationDate = (struct zx_hrxml_PublicationDate_s*)el; 4114 return 1; 4115 case zx_hrxml_Link_ELEM: 4116 if (!x->Link) 4117 x->Link = el; 4118 return 1; 4119 case zx_hrxml_Abstract_ELEM: 4120 if (!x->Abstract) 4121 x->Abstract = el; 4122 return 1; 4123 case zx_hrxml_Copyright_ELEM: 4124 if (!x->Copyright) 4125 x->Copyright = (struct zx_hrxml_Copyright_s*)el; 4126 return 1; 4127 case zx_hrxml_Comments_ELEM: 4128 if (!x->Comments) 4129 x->Comments = el; 4130 return 1; 4131 case zx_hrxml_ISSN_ELEM: 4132 if (!x->ISSN) 4133 x->ISSN = el; 4134 return 1; 4135 case zx_hrxml_ISBN_ELEM: 4136 if (!x->ISBN) 4137 x->ISBN = el; 4138 return 1; 4139 case zx_hrxml_NumberOfPages_ELEM: 4140 if (!x->NumberOfPages) 4141 x->NumberOfPages = el; 4142 return 1; 4143 case zx_hrxml_PublisherName_ELEM: 4144 if (!x->PublisherName) 4145 x->PublisherName = el; 4146 return 1; 4147 case zx_hrxml_PublisherLocation_ELEM: 4148 if (!x->PublisherLocation) 4149 x->PublisherLocation = el; 4150 return 1; 4151 4152 default: return 0; 4153 } 4154 } 4155 4156 4157 4158 4159 int zx_DEC_ATTR_hrxml_Pager(struct zx_ctx* c, struct zx_hrxml_Pager_s* x) 4160 { 4161 switch (x->gg.attr->g.tok) { 4162 4163 default: return 0; 4164 } 4165 } 4166 4167 int zx_DEC_ELEM_hrxml_Pager(struct zx_ctx* c, struct zx_hrxml_Pager_s* x) 4168 { 4169 struct zx_elem_s* el = x->gg.kids; 4170 switch (el->g.tok) { 4171 case zx_hrxml_FormattedNumber_ELEM: 4172 if (!x->FormattedNumber) 4173 x->FormattedNumber = el; 4174 return 1; 4175 4176 default: return 0; 4177 } 4178 } 4179 4180 4181 4182 4183 int zx_DEC_ATTR_hrxml_ParkingInstructions(struct zx_ctx* c, struct zx_hrxml_ParkingInstructions_s* x) 4184 { 4185 switch (x->gg.attr->g.tok) { 4186 case zx_lang_ATTR|zx_xml_NS: x->lang = x->gg.attr; return 1; 4187 4188 default: return 0; 4189 } 4190 } 4191 4192 int zx_DEC_ELEM_hrxml_ParkingInstructions(struct zx_ctx* c, struct zx_hrxml_ParkingInstructions_s* x) 4193 { 4194 struct zx_elem_s* el = x->gg.kids; 4195 switch (el->g.tok) { 4196 4197 default: return 0; 4198 } 4199 } 4200 4201 4202 4203 4204 int zx_DEC_ATTR_hrxml_Patent(struct zx_ctx* c, struct zx_hrxml_Patent_s* x) 4205 { 4206 switch (x->gg.attr->g.tok) { 4207 4208 default: return 0; 4209 } 4210 } 4211 4212 int zx_DEC_ELEM_hrxml_Patent(struct zx_ctx* c, struct zx_hrxml_Patent_s* x) 4213 { 4214 struct zx_elem_s* el = x->gg.kids; 4215 switch (el->g.tok) { 4216 case zx_hrxml_PatentTitle_ELEM: 4217 if (!x->PatentTitle) 4218 x->PatentTitle = el; 4219 return 1; 4220 case zx_hrxml_Description_ELEM: 4221 if (!x->Description) 4222 x->Description = (struct zx_hrxml_Description_s*)el; 4223 return 1; 4224 case zx_hrxml_Inventors_ELEM: 4225 if (!x->Inventors) 4226 x->Inventors = (struct zx_hrxml_Inventors_s*)el; 4227 return 1; 4228 case zx_hrxml_PatentDetail_ELEM: 4229 if (!x->PatentDetail) 4230 x->PatentDetail = (struct zx_hrxml_PatentDetail_s*)el; 4231 return 1; 4232 case zx_hrxml_Link_ELEM: 4233 if (!x->Link) 4234 x->Link = el; 4235 return 1; 4236 4237 default: return 0; 4238 } 4239 } 4240 4241 4242 4243 4244 int zx_DEC_ATTR_hrxml_PatentDetail(struct zx_ctx* c, struct zx_hrxml_PatentDetail_s* x) 4245 { 4246 switch (x->gg.attr->g.tok) { 4247 4248 default: return 0; 4249 } 4250 } 4251 4252 int zx_DEC_ELEM_hrxml_PatentDetail(struct zx_ctx* c, struct zx_hrxml_PatentDetail_s* x) 4253 { 4254 struct zx_elem_s* el = x->gg.kids; 4255 switch (el->g.tok) { 4256 case zx_hrxml_IssuingAuthority_ELEM: 4257 if (!x->IssuingAuthority) 4258 x->IssuingAuthority = (struct zx_hrxml_IssuingAuthority_s*)el; 4259 return 1; 4260 case zx_hrxml_PatentMilestone_ELEM: 4261 if (!x->PatentMilestone) 4262 x->PatentMilestone = (struct zx_hrxml_PatentMilestone_s*)el; 4263 return 1; 4264 4265 default: return 0; 4266 } 4267 } 4268 4269 4270 4271 4272 int zx_DEC_ATTR_hrxml_PatentHistory(struct zx_ctx* c, struct zx_hrxml_PatentHistory_s* x) 4273 { 4274 switch (x->gg.attr->g.tok) { 4275 4276 default: return 0; 4277 } 4278 } 4279 4280 int zx_DEC_ELEM_hrxml_PatentHistory(struct zx_ctx* c, struct zx_hrxml_PatentHistory_s* x) 4281 { 4282 struct zx_elem_s* el = x->gg.kids; 4283 switch (el->g.tok) { 4284 case zx_hrxml_Patent_ELEM: 4285 if (!x->Patent) 4286 x->Patent = (struct zx_hrxml_Patent_s*)el; 4287 return 1; 4288 4289 default: return 0; 4290 } 4291 } 4292 4293 4294 4295 4296 int zx_DEC_ATTR_hrxml_PatentMilestone(struct zx_ctx* c, struct zx_hrxml_PatentMilestone_s* x) 4297 { 4298 switch (x->gg.attr->g.tok) { 4299 4300 default: return 0; 4301 } 4302 } 4303 4304 int zx_DEC_ELEM_hrxml_PatentMilestone(struct zx_ctx* c, struct zx_hrxml_PatentMilestone_s* x) 4305 { 4306 struct zx_elem_s* el = x->gg.kids; 4307 switch (el->g.tok) { 4308 case zx_hrxml_Id_ELEM: 4309 if (!x->Id) 4310 x->Id = (struct zx_hrxml_Id_s*)el; 4311 return 1; 4312 case zx_hrxml_Status_ELEM: 4313 if (!x->Status) 4314 x->Status = (struct zx_hrxml_Status_s*)el; 4315 return 1; 4316 case zx_hrxml_Date_ELEM: 4317 if (!x->Date) 4318 x->Date = el; 4319 return 1; 4320 4321 default: return 0; 4322 } 4323 } 4324 4325 4326 4327 4328 int zx_DEC_ATTR_hrxml_PersonDescriptors(struct zx_ctx* c, struct zx_hrxml_PersonDescriptors_s* x) 4329 { 4330 switch (x->gg.attr->g.tok) { 4331 4332 default: return 0; 4333 } 4334 } 4335 4336 int zx_DEC_ELEM_hrxml_PersonDescriptors(struct zx_ctx* c, struct zx_hrxml_PersonDescriptors_s* x) 4337 { 4338 struct zx_elem_s* el = x->gg.kids; 4339 switch (el->g.tok) { 4340 case zx_hrxml_LegalIdentifiers_ELEM: 4341 if (!x->LegalIdentifiers) 4342 x->LegalIdentifiers = (struct zx_hrxml_LegalIdentifiers_s*)el; 4343 return 1; 4344 case zx_hrxml_DemographicDescriptors_ELEM: 4345 if (!x->DemographicDescriptors) 4346 x->DemographicDescriptors = (struct zx_hrxml_DemographicDescriptors_s*)el; 4347 return 1; 4348 case zx_hrxml_BiologicalDescriptors_ELEM: 4349 if (!x->BiologicalDescriptors) 4350 x->BiologicalDescriptors = (struct zx_hrxml_BiologicalDescriptors_s*)el; 4351 return 1; 4352 case zx_hrxml_SupportingMaterials_ELEM: 4353 if (!x->SupportingMaterials) 4354 x->SupportingMaterials = (struct zx_hrxml_SupportingMaterials_s*)el; 4355 return 1; 4356 case zx_hrxml_OtherDescriptors_ELEM: 4357 if (!x->OtherDescriptors) 4358 x->OtherDescriptors = (struct zx_hrxml_OtherDescriptors_s*)el; 4359 return 1; 4360 case zx_hrxml_UserArea_ELEM: 4361 if (!x->UserArea) 4362 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 4363 return 1; 4364 4365 default: return 0; 4366 } 4367 } 4368 4369 4370 4371 4372 int zx_DEC_ATTR_hrxml_PersonId(struct zx_ctx* c, struct zx_hrxml_PersonId_s* x) 4373 { 4374 switch (x->gg.attr->g.tok) { 4375 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 4376 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 4377 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 4378 4379 default: return 0; 4380 } 4381 } 4382 4383 int zx_DEC_ELEM_hrxml_PersonId(struct zx_ctx* c, struct zx_hrxml_PersonId_s* x) 4384 { 4385 struct zx_elem_s* el = x->gg.kids; 4386 switch (el->g.tok) { 4387 case zx_hrxml_IdValue_ELEM: 4388 if (!x->IdValue) 4389 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 4390 return 1; 4391 4392 default: return 0; 4393 } 4394 } 4395 4396 4397 4398 4399 int zx_DEC_ATTR_hrxml_PersonLegalId(struct zx_ctx* c, struct zx_hrxml_PersonLegalId_s* x) 4400 { 4401 switch (x->gg.attr->g.tok) { 4402 case zx_countryCode_ATTR: x->countryCode = x->gg.attr; return 1; 4403 case zx_documentType_ATTR: x->documentType = x->gg.attr; return 1; 4404 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 4405 case zx_idSource_ATTR: x->idSource = x->gg.attr; return 1; 4406 case zx_issuingRegion_ATTR: x->issuingRegion = x->gg.attr; return 1; 4407 case zx_jurisdiction_ATTR: x->jurisdiction = x->gg.attr; return 1; 4408 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 4409 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 4410 4411 default: return 0; 4412 } 4413 } 4414 4415 int zx_DEC_ELEM_hrxml_PersonLegalId(struct zx_ctx* c, struct zx_hrxml_PersonLegalId_s* x) 4416 { 4417 struct zx_elem_s* el = x->gg.kids; 4418 switch (el->g.tok) { 4419 case zx_hrxml_IdValue_ELEM: 4420 if (!x->IdValue) 4421 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 4422 return 1; 4423 4424 default: return 0; 4425 } 4426 } 4427 4428 4429 4430 4431 int zx_DEC_ATTR_hrxml_PersonMember(struct zx_ctx* c, struct zx_hrxml_PersonMember_s* x) 4432 { 4433 switch (x->gg.attr->g.tok) { 4434 4435 default: return 0; 4436 } 4437 } 4438 4439 int zx_DEC_ELEM_hrxml_PersonMember(struct zx_ctx* c, struct zx_hrxml_PersonMember_s* x) 4440 { 4441 struct zx_elem_s* el = x->gg.kids; 4442 switch (el->g.tok) { 4443 case zx_hrxml_PersonName_ELEM: 4444 if (!x->PersonName) 4445 x->PersonName = (struct zx_hrxml_PersonName_s*)el; 4446 return 1; 4447 case zx_hrxml_PersonId_ELEM: 4448 if (!x->PersonId) 4449 x->PersonId = (struct zx_hrxml_PersonId_s*)el; 4450 return 1; 4451 case zx_hrxml_PersonRole_ELEM: 4452 if (!x->PersonRole) 4453 x->PersonRole = (struct zx_hrxml_PersonRole_s*)el; 4454 return 1; 4455 case zx_hrxml_ContactMethod_ELEM: 4456 if (!x->ContactMethod) 4457 x->ContactMethod = (struct zx_hrxml_ContactMethod_s*)el; 4458 return 1; 4459 4460 default: return 0; 4461 } 4462 } 4463 4464 4465 4466 4467 int zx_DEC_ATTR_hrxml_PersonName(struct zx_ctx* c, struct zx_hrxml_PersonName_s* x) 4468 { 4469 switch (x->gg.attr->g.tok) { 4470 case zx_script_ATTR: x->script = x->gg.attr; return 1; 4471 4472 default: return 0; 4473 } 4474 } 4475 4476 int zx_DEC_ELEM_hrxml_PersonName(struct zx_ctx* c, struct zx_hrxml_PersonName_s* x) 4477 { 4478 struct zx_elem_s* el = x->gg.kids; 4479 switch (el->g.tok) { 4480 case zx_hrxml_FormattedName_ELEM: 4481 if (!x->FormattedName) 4482 x->FormattedName = el; 4483 return 1; 4484 case zx_hrxml_LegalName_ELEM: 4485 if (!x->LegalName) 4486 x->LegalName = el; 4487 return 1; 4488 case zx_hrxml_GivenName_ELEM: 4489 if (!x->GivenName) 4490 x->GivenName = el; 4491 return 1; 4492 case zx_hrxml_PreferredGivenName_ELEM: 4493 if (!x->PreferredGivenName) 4494 x->PreferredGivenName = el; 4495 return 1; 4496 case zx_hrxml_MiddleName_ELEM: 4497 if (!x->MiddleName) 4498 x->MiddleName = el; 4499 return 1; 4500 case zx_hrxml_FamilyName_ELEM: 4501 if (!x->FamilyName) 4502 x->FamilyName = (struct zx_hrxml_FamilyName_s*)el; 4503 return 1; 4504 case zx_hrxml_Affix_ELEM: 4505 if (!x->Affix) 4506 x->Affix = (struct zx_hrxml_Affix_s*)el; 4507 return 1; 4508 case zx_hrxml_AlternateScript_ELEM: 4509 if (!x->AlternateScript) 4510 x->AlternateScript = (struct zx_hrxml_AlternateScript_s*)el; 4511 return 1; 4512 4513 default: return 0; 4514 } 4515 } 4516 4517 4518 4519 4520 int zx_DEC_ATTR_hrxml_PersonRole(struct zx_ctx* c, struct zx_hrxml_PersonRole_s* x) 4521 { 4522 switch (x->gg.attr->g.tok) { 4523 case zx_leader_ATTR: x->leader = x->gg.attr; return 1; 4524 4525 default: return 0; 4526 } 4527 } 4528 4529 int zx_DEC_ELEM_hrxml_PersonRole(struct zx_ctx* c, struct zx_hrxml_PersonRole_s* x) 4530 { 4531 struct zx_elem_s* el = x->gg.kids; 4532 switch (el->g.tok) { 4533 case zx_hrxml_RoleName_ELEM: 4534 if (!x->RoleName) 4535 x->RoleName = el; 4536 return 1; 4537 case zx_hrxml_RoleId_ELEM: 4538 if (!x->RoleId) 4539 x->RoleId = (struct zx_hrxml_RoleId_s*)el; 4540 return 1; 4541 case zx_hrxml_Description_ELEM: 4542 if (!x->Description) 4543 x->Description = (struct zx_hrxml_Description_s*)el; 4544 return 1; 4545 4546 default: return 0; 4547 } 4548 } 4549 4550 4551 4552 4553 int zx_DEC_ATTR_hrxml_PersonalData(struct zx_ctx* c, struct zx_hrxml_PersonalData_s* x) 4554 { 4555 switch (x->gg.attr->g.tok) { 4556 4557 default: return 0; 4558 } 4559 } 4560 4561 int zx_DEC_ELEM_hrxml_PersonalData(struct zx_ctx* c, struct zx_hrxml_PersonalData_s* x) 4562 { 4563 struct zx_elem_s* el = x->gg.kids; 4564 switch (el->g.tok) { 4565 case zx_hrxml_PersonId_ELEM: 4566 if (!x->PersonId) 4567 x->PersonId = (struct zx_hrxml_PersonId_s*)el; 4568 return 1; 4569 case zx_hrxml_PersonName_ELEM: 4570 if (!x->PersonName) 4571 x->PersonName = (struct zx_hrxml_PersonName_s*)el; 4572 return 1; 4573 case zx_hrxml_ContactMethod_ELEM: 4574 if (!x->ContactMethod) 4575 x->ContactMethod = (struct zx_hrxml_ContactMethod_s*)el; 4576 return 1; 4577 case zx_hrxml_PersonDescriptors_ELEM: 4578 if (!x->PersonDescriptors) 4579 x->PersonDescriptors = (struct zx_hrxml_PersonDescriptors_s*)el; 4580 return 1; 4581 case zx_hrxml_UserArea_ELEM: 4582 if (!x->UserArea) 4583 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 4584 return 1; 4585 4586 default: return 0; 4587 } 4588 } 4589 4590 4591 4592 4593 int zx_DEC_ATTR_hrxml_PhysicalLocation(struct zx_ctx* c, struct zx_hrxml_PhysicalLocation_s* x) 4594 { 4595 switch (x->gg.attr->g.tok) { 4596 4597 default: return 0; 4598 } 4599 } 4600 4601 int zx_DEC_ELEM_hrxml_PhysicalLocation(struct zx_ctx* c, struct zx_hrxml_PhysicalLocation_s* x) 4602 { 4603 struct zx_elem_s* el = x->gg.kids; 4604 switch (el->g.tok) { 4605 case zx_hrxml_Id_ELEM: 4606 if (!x->Id) 4607 x->Id = (struct zx_hrxml_Id_s*)el; 4608 return 1; 4609 case zx_hrxml_Name_ELEM: 4610 if (!x->Name) 4611 x->Name = el; 4612 return 1; 4613 case zx_hrxml_EffectiveDate_ELEM: 4614 if (!x->EffectiveDate) 4615 x->EffectiveDate = (struct zx_hrxml_EffectiveDate_s*)el; 4616 return 1; 4617 case zx_hrxml_SpatialLocation_ELEM: 4618 if (!x->SpatialLocation) 4619 x->SpatialLocation = (struct zx_hrxml_SpatialLocation_s*)el; 4620 return 1; 4621 case zx_hrxml_TravelDirections_ELEM: 4622 if (!x->TravelDirections) 4623 x->TravelDirections = (struct zx_hrxml_TravelDirections_s*)el; 4624 return 1; 4625 case zx_hrxml_PostalAddress_ELEM: 4626 if (!x->PostalAddress) 4627 x->PostalAddress = (struct zx_hrxml_PostalAddress_s*)el; 4628 return 1; 4629 case zx_hrxml_Area_ELEM: 4630 if (!x->Area) 4631 x->Area = (struct zx_hrxml_Area_s*)el; 4632 return 1; 4633 case zx_hrxml_Comments_ELEM: 4634 if (!x->Comments) 4635 x->Comments = el; 4636 return 1; 4637 4638 default: return 0; 4639 } 4640 } 4641 4642 4643 4644 4645 int zx_DEC_ATTR_hrxml_PositionHistory(struct zx_ctx* c, struct zx_hrxml_PositionHistory_s* x) 4646 { 4647 switch (x->gg.attr->g.tok) { 4648 case zx_currentEmployer_ATTR: x->currentEmployer = x->gg.attr; return 1; 4649 case zx_positionType_ATTR: x->positionType = x->gg.attr; return 1; 4650 4651 default: return 0; 4652 } 4653 } 4654 4655 int zx_DEC_ELEM_hrxml_PositionHistory(struct zx_ctx* c, struct zx_hrxml_PositionHistory_s* x) 4656 { 4657 struct zx_elem_s* el = x->gg.kids; 4658 switch (el->g.tok) { 4659 case zx_hrxml_Title_ELEM: 4660 if (!x->Title) 4661 x->Title = el; 4662 return 1; 4663 case zx_hrxml_OrgName_ELEM: 4664 if (!x->OrgName) 4665 x->OrgName = (struct zx_hrxml_OrgName_s*)el; 4666 return 1; 4667 case zx_hrxml_OrgInfo_ELEM: 4668 if (!x->OrgInfo) 4669 x->OrgInfo = (struct zx_hrxml_OrgInfo_s*)el; 4670 return 1; 4671 case zx_hrxml_OrgIndustry_ELEM: 4672 if (!x->OrgIndustry) 4673 x->OrgIndustry = (struct zx_hrxml_OrgIndustry_s*)el; 4674 return 1; 4675 case zx_hrxml_OrgSize_ELEM: 4676 if (!x->OrgSize) 4677 x->OrgSize = el; 4678 return 1; 4679 case zx_hrxml_Description_ELEM: 4680 if (!x->Description) 4681 x->Description = (struct zx_hrxml_Description_s*)el; 4682 return 1; 4683 case zx_hrxml_StartDate_ELEM: 4684 if (!x->StartDate) 4685 x->StartDate = (struct zx_hrxml_StartDate_s*)el; 4686 return 1; 4687 case zx_hrxml_EndDate_ELEM: 4688 if (!x->EndDate) 4689 x->EndDate = (struct zx_hrxml_EndDate_s*)el; 4690 return 1; 4691 case zx_hrxml_Compensation_ELEM: 4692 if (!x->Compensation) 4693 x->Compensation = (struct zx_hrxml_Compensation_s*)el; 4694 return 1; 4695 case zx_hrxml_Comments_ELEM: 4696 if (!x->Comments) 4697 x->Comments = el; 4698 return 1; 4699 case zx_hrxml_Verification_ELEM: 4700 if (!x->Verification) 4701 x->Verification = (struct zx_hrxml_Verification_s*)el; 4702 return 1; 4703 case zx_hrxml_JobLevelInfo_ELEM: 4704 if (!x->JobLevelInfo) 4705 x->JobLevelInfo = (struct zx_hrxml_JobLevelInfo_s*)el; 4706 return 1; 4707 case zx_hrxml_JobCategory_ELEM: 4708 if (!x->JobCategory) 4709 x->JobCategory = (struct zx_hrxml_JobCategory_s*)el; 4710 return 1; 4711 case zx_hrxml_Competency_ELEM: 4712 if (!x->Competency) 4713 x->Competency = (struct zx_hrxml_Competency_s*)el; 4714 return 1; 4715 case zx_hrxml_UserArea_ELEM: 4716 if (!x->UserArea) 4717 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 4718 return 1; 4719 4720 default: return 0; 4721 } 4722 } 4723 4724 4725 4726 4727 int zx_DEC_ATTR_hrxml_PositionLocation(struct zx_ctx* c, struct zx_hrxml_PositionLocation_s* x) 4728 { 4729 switch (x->gg.attr->g.tok) { 4730 case zx_type_ATTR: x->type = x->gg.attr; return 1; 4731 4732 default: return 0; 4733 } 4734 } 4735 4736 int zx_DEC_ELEM_hrxml_PositionLocation(struct zx_ctx* c, struct zx_hrxml_PositionLocation_s* x) 4737 { 4738 struct zx_elem_s* el = x->gg.kids; 4739 switch (el->g.tok) { 4740 case zx_hrxml_CountryCode_ELEM: 4741 if (!x->CountryCode) 4742 x->CountryCode = el; 4743 return 1; 4744 case zx_hrxml_PostalCode_ELEM: 4745 if (!x->PostalCode) 4746 x->PostalCode = el; 4747 return 1; 4748 case zx_hrxml_Region_ELEM: 4749 if (!x->Region) 4750 x->Region = el; 4751 return 1; 4752 case zx_hrxml_Municipality_ELEM: 4753 if (!x->Municipality) 4754 x->Municipality = el; 4755 return 1; 4756 case zx_hrxml_DeliveryAddress_ELEM: 4757 if (!x->DeliveryAddress) 4758 x->DeliveryAddress = (struct zx_hrxml_DeliveryAddress_s*)el; 4759 return 1; 4760 case zx_hrxml_Recipient_ELEM: 4761 if (!x->Recipient) 4762 x->Recipient = (struct zx_hrxml_Recipient_s*)el; 4763 return 1; 4764 4765 default: return 0; 4766 } 4767 } 4768 4769 4770 4771 4772 int zx_DEC_ATTR_hrxml_PositionMatching(struct zx_ctx* c, struct zx_hrxml_PositionMatching_s* x) 4773 { 4774 switch (x->gg.attr->g.tok) { 4775 4776 default: return 0; 4777 } 4778 } 4779 4780 int zx_DEC_ELEM_hrxml_PositionMatching(struct zx_ctx* c, struct zx_hrxml_PositionMatching_s* x) 4781 { 4782 struct zx_elem_s* el = x->gg.kids; 4783 switch (el->g.tok) { 4784 case zx_hrxml_Company_ELEM: 4785 if (!x->Company) 4786 x->Company = (struct zx_hrxml_Company_s*)el; 4787 return 1; 4788 case zx_hrxml_CompanyScale_ELEM: 4789 if (!x->CompanyScale) 4790 x->CompanyScale = el; 4791 return 1; 4792 case zx_hrxml_IndustryCode_ELEM: 4793 if (!x->IndustryCode) 4794 x->IndustryCode = (struct zx_hrxml_IndustryCode_s*)el; 4795 return 1; 4796 case zx_hrxml_PhysicalLocation_ELEM: 4797 if (!x->PhysicalLocation) 4798 x->PhysicalLocation = (struct zx_hrxml_PhysicalLocation_s*)el; 4799 return 1; 4800 case zx_hrxml_JobCategory_ELEM: 4801 if (!x->JobCategory) 4802 x->JobCategory = (struct zx_hrxml_JobCategory_s*)el; 4803 return 1; 4804 case zx_hrxml_PositionTitle_ELEM: 4805 if (!x->PositionTitle) 4806 x->PositionTitle = el; 4807 return 1; 4808 case zx_hrxml_PositionClassification_ELEM: 4809 if (!x->PositionClassification) 4810 x->PositionClassification = el; 4811 return 1; 4812 case zx_hrxml_PositionSchedule_ELEM: 4813 if (!x->PositionSchedule) 4814 x->PositionSchedule = (struct zx_hrxml_PositionSchedule_s*)el; 4815 return 1; 4816 case zx_hrxml_Shift_ELEM: 4817 if (!x->Shift) 4818 x->Shift = (struct zx_hrxml_Shift_s*)el; 4819 return 1; 4820 case zx_hrxml_Competency_ELEM: 4821 if (!x->Competency) 4822 x->Competency = (struct zx_hrxml_Competency_s*)el; 4823 return 1; 4824 case zx_hrxml_RemunerationPackage_ELEM: 4825 if (!x->RemunerationPackage) 4826 x->RemunerationPackage = (struct zx_hrxml_RemunerationPackage_s*)el; 4827 return 1; 4828 case zx_hrxml_WorkStyle_ELEM: 4829 if (!x->WorkStyle) 4830 x->WorkStyle = el; 4831 return 1; 4832 case zx_hrxml_DressCode_ELEM: 4833 if (!x->DressCode) 4834 x->DressCode = (struct zx_hrxml_DressCode_s*)el; 4835 return 1; 4836 case zx_hrxml_Travel_ELEM: 4837 if (!x->Travel) 4838 x->Travel = (struct zx_hrxml_Travel_s*)el; 4839 return 1; 4840 case zx_hrxml_Relocation_ELEM: 4841 if (!x->Relocation) 4842 x->Relocation = (struct zx_hrxml_Relocation_s*)el; 4843 return 1; 4844 case zx_hrxml_PreferredLanguage_ELEM: 4845 if (!x->PreferredLanguage) 4846 x->PreferredLanguage = (struct zx_hrxml_PreferredLanguage_s*)el; 4847 return 1; 4848 case zx_hrxml_UserArea_ELEM: 4849 if (!x->UserArea) 4850 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 4851 return 1; 4852 4853 default: return 0; 4854 } 4855 } 4856 4857 4858 4859 4860 int zx_DEC_ATTR_hrxml_PositionPosting(struct zx_ctx* c, struct zx_hrxml_PositionPosting_s* x) 4861 { 4862 switch (x->gg.attr->g.tok) { 4863 4864 default: return 0; 4865 } 4866 } 4867 4868 int zx_DEC_ELEM_hrxml_PositionPosting(struct zx_ctx* c, struct zx_hrxml_PositionPosting_s* x) 4869 { 4870 struct zx_elem_s* el = x->gg.kids; 4871 switch (el->g.tok) { 4872 case zx_hrxml_Id_ELEM: 4873 if (!x->Id) 4874 x->Id = (struct zx_hrxml_Id_s*)el; 4875 return 1; 4876 case zx_hrxml_Title_ELEM: 4877 if (!x->Title) 4878 x->Title = el; 4879 return 1; 4880 case zx_hrxml_Link_ELEM: 4881 if (!x->Link) 4882 x->Link = el; 4883 return 1; 4884 case zx_hrxml_SearchCriteria_ELEM: 4885 if (!x->SearchCriteria) 4886 x->SearchCriteria = (struct zx_hrxml_SearchCriteria_s*)el; 4887 return 1; 4888 case zx_hrxml_SearchResult_ELEM: 4889 if (!x->SearchResult) 4890 x->SearchResult = (struct zx_hrxml_SearchResult_s*)el; 4891 return 1; 4892 4893 default: return 0; 4894 } 4895 } 4896 4897 4898 4899 4900 int zx_DEC_ATTR_hrxml_PositionSchedule(struct zx_ctx* c, struct zx_hrxml_PositionSchedule_s* x) 4901 { 4902 switch (x->gg.attr->g.tok) { 4903 case zx_percentage_ATTR: x->percentage = x->gg.attr; return 1; 4904 4905 default: return 0; 4906 } 4907 } 4908 4909 int zx_DEC_ELEM_hrxml_PositionSchedule(struct zx_ctx* c, struct zx_hrxml_PositionSchedule_s* x) 4910 { 4911 struct zx_elem_s* el = x->gg.kids; 4912 switch (el->g.tok) { 4913 4914 default: return 0; 4915 } 4916 } 4917 4918 4919 4920 4921 int zx_DEC_ATTR_hrxml_PostalAddress(struct zx_ctx* c, struct zx_hrxml_PostalAddress_s* x) 4922 { 4923 switch (x->gg.attr->g.tok) { 4924 case zx_type_ATTR: x->type = x->gg.attr; return 1; 4925 4926 default: return 0; 4927 } 4928 } 4929 4930 int zx_DEC_ELEM_hrxml_PostalAddress(struct zx_ctx* c, struct zx_hrxml_PostalAddress_s* x) 4931 { 4932 struct zx_elem_s* el = x->gg.kids; 4933 switch (el->g.tok) { 4934 case zx_hrxml_CountryCode_ELEM: 4935 if (!x->CountryCode) 4936 x->CountryCode = el; 4937 return 1; 4938 case zx_hrxml_PostalCode_ELEM: 4939 if (!x->PostalCode) 4940 x->PostalCode = el; 4941 return 1; 4942 case zx_hrxml_Region_ELEM: 4943 if (!x->Region) 4944 x->Region = el; 4945 return 1; 4946 case zx_hrxml_Municipality_ELEM: 4947 if (!x->Municipality) 4948 x->Municipality = el; 4949 return 1; 4950 case zx_hrxml_DeliveryAddress_ELEM: 4951 if (!x->DeliveryAddress) 4952 x->DeliveryAddress = (struct zx_hrxml_DeliveryAddress_s*)el; 4953 return 1; 4954 case zx_hrxml_Recipient_ELEM: 4955 if (!x->Recipient) 4956 x->Recipient = (struct zx_hrxml_Recipient_s*)el; 4957 return 1; 4958 4959 default: return 0; 4960 } 4961 } 4962 4963 4964 4965 4966 int zx_DEC_ATTR_hrxml_PreferredLanguage(struct zx_ctx* c, struct zx_hrxml_PreferredLanguage_s* x) 4967 { 4968 switch (x->gg.attr->g.tok) { 4969 4970 default: return 0; 4971 } 4972 } 4973 4974 int zx_DEC_ELEM_hrxml_PreferredLanguage(struct zx_ctx* c, struct zx_hrxml_PreferredLanguage_s* x) 4975 { 4976 struct zx_elem_s* el = x->gg.kids; 4977 switch (el->g.tok) { 4978 4979 default: return 0; 4980 } 4981 } 4982 4983 4984 4985 4986 int zx_DEC_ATTR_hrxml_PreferredPosition(struct zx_ctx* c, struct zx_hrxml_PreferredPosition_s* x) 4987 { 4988 switch (x->gg.attr->g.tok) { 4989 4990 default: return 0; 4991 } 4992 } 4993 4994 int zx_DEC_ELEM_hrxml_PreferredPosition(struct zx_ctx* c, struct zx_hrxml_PreferredPosition_s* x) 4995 { 4996 struct zx_elem_s* el = x->gg.kids; 4997 switch (el->g.tok) { 4998 case zx_hrxml_Company_ELEM: 4999 if (!x->Company) 5000 x->Company = (struct zx_hrxml_Company_s*)el; 5001 return 1; 5002 case zx_hrxml_CompanyScale_ELEM: 5003 if (!x->CompanyScale) 5004 x->CompanyScale = el; 5005 return 1; 5006 case zx_hrxml_IndustryCode_ELEM: 5007 if (!x->IndustryCode) 5008 x->IndustryCode = (struct zx_hrxml_IndustryCode_s*)el; 5009 return 1; 5010 case zx_hrxml_PhysicalLocation_ELEM: 5011 if (!x->PhysicalLocation) 5012 x->PhysicalLocation = (struct zx_hrxml_PhysicalLocation_s*)el; 5013 return 1; 5014 case zx_hrxml_JobCategory_ELEM: 5015 if (!x->JobCategory) 5016 x->JobCategory = (struct zx_hrxml_JobCategory_s*)el; 5017 return 1; 5018 case zx_hrxml_PositionTitle_ELEM: 5019 if (!x->PositionTitle) 5020 x->PositionTitle = el; 5021 return 1; 5022 case zx_hrxml_PositionClassification_ELEM: 5023 if (!x->PositionClassification) 5024 x->PositionClassification = el; 5025 return 1; 5026 case zx_hrxml_PositionSchedule_ELEM: 5027 if (!x->PositionSchedule) 5028 x->PositionSchedule = (struct zx_hrxml_PositionSchedule_s*)el; 5029 return 1; 5030 case zx_hrxml_Shift_ELEM: 5031 if (!x->Shift) 5032 x->Shift = (struct zx_hrxml_Shift_s*)el; 5033 return 1; 5034 case zx_hrxml_Competency_ELEM: 5035 if (!x->Competency) 5036 x->Competency = (struct zx_hrxml_Competency_s*)el; 5037 return 1; 5038 case zx_hrxml_RemunerationPackage_ELEM: 5039 if (!x->RemunerationPackage) 5040 x->RemunerationPackage = (struct zx_hrxml_RemunerationPackage_s*)el; 5041 return 1; 5042 case zx_hrxml_WorkStyle_ELEM: 5043 if (!x->WorkStyle) 5044 x->WorkStyle = el; 5045 return 1; 5046 case zx_hrxml_DressCode_ELEM: 5047 if (!x->DressCode) 5048 x->DressCode = (struct zx_hrxml_DressCode_s*)el; 5049 return 1; 5050 case zx_hrxml_Travel_ELEM: 5051 if (!x->Travel) 5052 x->Travel = (struct zx_hrxml_Travel_s*)el; 5053 return 1; 5054 case zx_hrxml_Relocation_ELEM: 5055 if (!x->Relocation) 5056 x->Relocation = (struct zx_hrxml_Relocation_s*)el; 5057 return 1; 5058 case zx_hrxml_PreferredLanguage_ELEM: 5059 if (!x->PreferredLanguage) 5060 x->PreferredLanguage = (struct zx_hrxml_PreferredLanguage_s*)el; 5061 return 1; 5062 case zx_hrxml_UserArea_ELEM: 5063 if (!x->UserArea) 5064 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 5065 return 1; 5066 case zx_hrxml_Commute_ELEM: 5067 if (!x->Commute) 5068 x->Commute = (struct zx_hrxml_Commute_s*)el; 5069 return 1; 5070 5071 default: return 0; 5072 } 5073 } 5074 5075 5076 5077 5078 int zx_DEC_ATTR_hrxml_PrehireRemuneration(struct zx_ctx* c, struct zx_hrxml_PrehireRemuneration_s* x) 5079 { 5080 switch (x->gg.attr->g.tok) { 5081 5082 default: return 0; 5083 } 5084 } 5085 5086 int zx_DEC_ELEM_hrxml_PrehireRemuneration(struct zx_ctx* c, struct zx_hrxml_PrehireRemuneration_s* x) 5087 { 5088 struct zx_elem_s* el = x->gg.kids; 5089 switch (el->g.tok) { 5090 case zx_hrxml_BasePay_ELEM: 5091 if (!x->BasePay) 5092 x->BasePay = (struct zx_hrxml_BasePay_s*)el; 5093 return 1; 5094 case zx_hrxml_OtherPay_ELEM: 5095 if (!x->OtherPay) 5096 x->OtherPay = (struct zx_hrxml_OtherPay_s*)el; 5097 return 1; 5098 case zx_hrxml_Benefits_ELEM: 5099 if (!x->Benefits) 5100 x->Benefits = (struct zx_hrxml_Benefits_s*)el; 5101 return 1; 5102 case zx_hrxml_UserArea_ELEM: 5103 if (!x->UserArea) 5104 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 5105 return 1; 5106 5107 default: return 0; 5108 } 5109 } 5110 5111 5112 5113 5114 int zx_DEC_ATTR_hrxml_PrimaryLanguage(struct zx_ctx* c, struct zx_hrxml_PrimaryLanguage_s* x) 5115 { 5116 switch (x->gg.attr->g.tok) { 5117 5118 default: return 0; 5119 } 5120 } 5121 5122 int zx_DEC_ELEM_hrxml_PrimaryLanguage(struct zx_ctx* c, struct zx_hrxml_PrimaryLanguage_s* x) 5123 { 5124 struct zx_elem_s* el = x->gg.kids; 5125 switch (el->g.tok) { 5126 5127 default: return 0; 5128 } 5129 } 5130 5131 5132 5133 5134 int zx_DEC_ATTR_hrxml_ProfessionalAssociations(struct zx_ctx* c, struct zx_hrxml_ProfessionalAssociations_s* x) 5135 { 5136 switch (x->gg.attr->g.tok) { 5137 5138 default: return 0; 5139 } 5140 } 5141 5142 int zx_DEC_ELEM_hrxml_ProfessionalAssociations(struct zx_ctx* c, struct zx_hrxml_ProfessionalAssociations_s* x) 5143 { 5144 struct zx_elem_s* el = x->gg.kids; 5145 switch (el->g.tok) { 5146 case zx_hrxml_Association_ELEM: 5147 if (!x->Association) 5148 x->Association = (struct zx_hrxml_Association_s*)el; 5149 return 1; 5150 5151 default: return 0; 5152 } 5153 } 5154 5155 5156 5157 5158 int zx_DEC_ATTR_hrxml_ProfileId(struct zx_ctx* c, struct zx_hrxml_ProfileId_s* x) 5159 { 5160 switch (x->gg.attr->g.tok) { 5161 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 5162 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 5163 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 5164 5165 default: return 0; 5166 } 5167 } 5168 5169 int zx_DEC_ELEM_hrxml_ProfileId(struct zx_ctx* c, struct zx_hrxml_ProfileId_s* x) 5170 { 5171 struct zx_elem_s* el = x->gg.kids; 5172 switch (el->g.tok) { 5173 case zx_hrxml_IdValue_ELEM: 5174 if (!x->IdValue) 5175 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 5176 return 1; 5177 5178 default: return 0; 5179 } 5180 } 5181 5182 5183 5184 5185 int zx_DEC_ATTR_hrxml_ProgramId(struct zx_ctx* c, struct zx_hrxml_ProgramId_s* x) 5186 { 5187 switch (x->gg.attr->g.tok) { 5188 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 5189 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 5190 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 5191 5192 default: return 0; 5193 } 5194 } 5195 5196 int zx_DEC_ELEM_hrxml_ProgramId(struct zx_ctx* c, struct zx_hrxml_ProgramId_s* x) 5197 { 5198 struct zx_elem_s* el = x->gg.kids; 5199 switch (el->g.tok) { 5200 case zx_hrxml_IdValue_ELEM: 5201 if (!x->IdValue) 5202 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 5203 return 1; 5204 5205 default: return 0; 5206 } 5207 } 5208 5209 5210 5211 5212 int zx_DEC_ATTR_hrxml_PublicationDate(struct zx_ctx* c, struct zx_hrxml_PublicationDate_s* x) 5213 { 5214 switch (x->gg.attr->g.tok) { 5215 case zx_dateDescription_ATTR: x->dateDescription = x->gg.attr; return 1; 5216 5217 default: return 0; 5218 } 5219 } 5220 5221 int zx_DEC_ELEM_hrxml_PublicationDate(struct zx_ctx* c, struct zx_hrxml_PublicationDate_s* x) 5222 { 5223 struct zx_elem_s* el = x->gg.kids; 5224 switch (el->g.tok) { 5225 case zx_hrxml_AnyDate_ELEM: 5226 if (!x->AnyDate) 5227 x->AnyDate = el; 5228 return 1; 5229 case zx_hrxml_YearMonth_ELEM: 5230 if (!x->YearMonth) 5231 x->YearMonth = el; 5232 return 1; 5233 case zx_hrxml_Year_ELEM: 5234 if (!x->Year) 5235 x->Year = el; 5236 return 1; 5237 case zx_hrxml_MonthDay_ELEM: 5238 if (!x->MonthDay) 5239 x->MonthDay = el; 5240 return 1; 5241 case zx_hrxml_StringDate_ELEM: 5242 if (!x->StringDate) 5243 x->StringDate = el; 5244 return 1; 5245 5246 default: return 0; 5247 } 5248 } 5249 5250 5251 5252 5253 int zx_DEC_ATTR_hrxml_PublicationHistory(struct zx_ctx* c, struct zx_hrxml_PublicationHistory_s* x) 5254 { 5255 switch (x->gg.attr->g.tok) { 5256 5257 default: return 0; 5258 } 5259 } 5260 5261 int zx_DEC_ELEM_hrxml_PublicationHistory(struct zx_ctx* c, struct zx_hrxml_PublicationHistory_s* x) 5262 { 5263 struct zx_elem_s* el = x->gg.kids; 5264 switch (el->g.tok) { 5265 case zx_hrxml_FormattedPublicationDescription_ELEM: 5266 if (!x->FormattedPublicationDescription) 5267 x->FormattedPublicationDescription = (struct zx_hrxml_FormattedPublicationDescription_s*)el; 5268 return 1; 5269 case zx_hrxml_Article_ELEM: 5270 if (!x->Article) 5271 x->Article = (struct zx_hrxml_Article_s*)el; 5272 return 1; 5273 case zx_hrxml_Book_ELEM: 5274 if (!x->Book) 5275 x->Book = (struct zx_hrxml_Book_s*)el; 5276 return 1; 5277 case zx_hrxml_ConferencePaper_ELEM: 5278 if (!x->ConferencePaper) 5279 x->ConferencePaper = (struct zx_hrxml_ConferencePaper_s*)el; 5280 return 1; 5281 case zx_hrxml_OtherPublication_ELEM: 5282 if (!x->OtherPublication) 5283 x->OtherPublication = (struct zx_hrxml_OtherPublication_s*)el; 5284 return 1; 5285 5286 default: return 0; 5287 } 5288 } 5289 5290 5291 5292 5293 int zx_DEC_ATTR_hrxml_PublicationLanguage(struct zx_ctx* c, struct zx_hrxml_PublicationLanguage_s* x) 5294 { 5295 switch (x->gg.attr->g.tok) { 5296 5297 default: return 0; 5298 } 5299 } 5300 5301 int zx_DEC_ELEM_hrxml_PublicationLanguage(struct zx_ctx* c, struct zx_hrxml_PublicationLanguage_s* x) 5302 { 5303 struct zx_elem_s* el = x->gg.kids; 5304 switch (el->g.tok) { 5305 5306 default: return 0; 5307 } 5308 } 5309 5310 5311 5312 5313 int zx_DEC_ATTR_hrxml_Qualifications(struct zx_ctx* c, struct zx_hrxml_Qualifications_s* x) 5314 { 5315 switch (x->gg.attr->g.tok) { 5316 5317 default: return 0; 5318 } 5319 } 5320 5321 int zx_DEC_ELEM_hrxml_Qualifications(struct zx_ctx* c, struct zx_hrxml_Qualifications_s* x) 5322 { 5323 struct zx_elem_s* el = x->gg.kids; 5324 switch (el->g.tok) { 5325 case zx_hrxml_QualificationSummary_ELEM: 5326 if (!x->QualificationSummary) 5327 x->QualificationSummary = el; 5328 return 1; 5329 case zx_hrxml_Competency_ELEM: 5330 if (!x->Competency) 5331 x->Competency = (struct zx_hrxml_Competency_s*)el; 5332 return 1; 5333 5334 default: return 0; 5335 } 5336 } 5337 5338 5339 5340 5341 int zx_DEC_ATTR_hrxml_RankAchieved(struct zx_ctx* c, struct zx_hrxml_RankAchieved_s* x) 5342 { 5343 switch (x->gg.attr->g.tok) { 5344 5345 default: return 0; 5346 } 5347 } 5348 5349 int zx_DEC_ELEM_hrxml_RankAchieved(struct zx_ctx* c, struct zx_hrxml_RankAchieved_s* x) 5350 { 5351 struct zx_elem_s* el = x->gg.kids; 5352 switch (el->g.tok) { 5353 case zx_hrxml_StartRank_ELEM: 5354 if (!x->StartRank) 5355 x->StartRank = el; 5356 return 1; 5357 case zx_hrxml_CurrentOrEndRank_ELEM: 5358 if (!x->CurrentOrEndRank) 5359 x->CurrentOrEndRank = el; 5360 return 1; 5361 5362 default: return 0; 5363 } 5364 } 5365 5366 5367 5368 5369 int zx_DEC_ATTR_hrxml_RankedResult(struct zx_ctx* c, struct zx_hrxml_RankedResult_s* x) 5370 { 5371 switch (x->gg.attr->g.tok) { 5372 5373 default: return 0; 5374 } 5375 } 5376 5377 int zx_DEC_ELEM_hrxml_RankedResult(struct zx_ctx* c, struct zx_hrxml_RankedResult_s* x) 5378 { 5379 struct zx_elem_s* el = x->gg.kids; 5380 switch (el->g.tok) { 5381 case zx_hrxml_CriterionName_ELEM: 5382 if (!x->CriterionName) 5383 x->CriterionName = el; 5384 return 1; 5385 case zx_hrxml_Requested_ELEM: 5386 if (!x->Requested) 5387 x->Requested = el; 5388 return 1; 5389 case zx_hrxml_Offered_ELEM: 5390 if (!x->Offered) 5391 x->Offered = el; 5392 return 1; 5393 case zx_hrxml_Score_ELEM: 5394 if (!x->Score) 5395 x->Score = (struct zx_hrxml_Score_s*)el; 5396 return 1; 5397 case zx_hrxml_Weight_ELEM: 5398 if (!x->Weight) 5399 x->Weight = (struct zx_hrxml_Weight_s*)el; 5400 return 1; 5401 case zx_hrxml_UserArea_ELEM: 5402 if (!x->UserArea) 5403 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 5404 return 1; 5405 case zx_hrxml_RankedResult_ELEM: 5406 if (!x->RankedResult) 5407 x->RankedResult = (struct zx_hrxml_RankedResult_s*)el; 5408 return 1; 5409 5410 default: return 0; 5411 } 5412 } 5413 5414 5415 5416 5417 int zx_DEC_ATTR_hrxml_RankedSearchResults(struct zx_ctx* c, struct zx_hrxml_RankedSearchResults_s* x) 5418 { 5419 switch (x->gg.attr->g.tok) { 5420 5421 default: return 0; 5422 } 5423 } 5424 5425 int zx_DEC_ELEM_hrxml_RankedSearchResults(struct zx_ctx* c, struct zx_hrxml_RankedSearchResults_s* x) 5426 { 5427 struct zx_elem_s* el = x->gg.kids; 5428 switch (el->g.tok) { 5429 case zx_hrxml_RankedResult_ELEM: 5430 if (!x->RankedResult) 5431 x->RankedResult = (struct zx_hrxml_RankedResult_s*)el; 5432 return 1; 5433 5434 default: return 0; 5435 } 5436 } 5437 5438 5439 5440 5441 int zx_DEC_ATTR_hrxml_Recipient(struct zx_ctx* c, struct zx_hrxml_Recipient_s* x) 5442 { 5443 switch (x->gg.attr->g.tok) { 5444 5445 default: return 0; 5446 } 5447 } 5448 5449 int zx_DEC_ELEM_hrxml_Recipient(struct zx_ctx* c, struct zx_hrxml_Recipient_s* x) 5450 { 5451 struct zx_elem_s* el = x->gg.kids; 5452 switch (el->g.tok) { 5453 case zx_hrxml_PersonName_ELEM: 5454 if (!x->PersonName) 5455 x->PersonName = (struct zx_hrxml_PersonName_s*)el; 5456 return 1; 5457 case zx_hrxml_AdditionalText_ELEM: 5458 if (!x->AdditionalText) 5459 x->AdditionalText = el; 5460 return 1; 5461 case zx_hrxml_Organization_ELEM: 5462 if (!x->Organization) 5463 x->Organization = (struct zx_hrxml_Organization_s*)el; 5464 return 1; 5465 case zx_hrxml_OrganizationName_ELEM: 5466 if (!x->OrganizationName) 5467 x->OrganizationName = el; 5468 return 1; 5469 5470 default: return 0; 5471 } 5472 } 5473 5474 5475 5476 5477 int zx_DEC_ATTR_hrxml_Reference(struct zx_ctx* c, struct zx_hrxml_Reference_s* x) 5478 { 5479 switch (x->gg.attr->g.tok) { 5480 case zx_type_ATTR: x->type = x->gg.attr; return 1; 5481 5482 default: return 0; 5483 } 5484 } 5485 5486 int zx_DEC_ELEM_hrxml_Reference(struct zx_ctx* c, struct zx_hrxml_Reference_s* x) 5487 { 5488 struct zx_elem_s* el = x->gg.kids; 5489 switch (el->g.tok) { 5490 case zx_hrxml_PersonName_ELEM: 5491 if (!x->PersonName) 5492 x->PersonName = (struct zx_hrxml_PersonName_s*)el; 5493 return 1; 5494 case zx_hrxml_PositionTitle_ELEM: 5495 if (!x->PositionTitle) 5496 x->PositionTitle = el; 5497 return 1; 5498 case zx_hrxml_ContactMethod_ELEM: 5499 if (!x->ContactMethod) 5500 x->ContactMethod = (struct zx_hrxml_ContactMethod_s*)el; 5501 return 1; 5502 case zx_hrxml_Comments_ELEM: 5503 if (!x->Comments) 5504 x->Comments = el; 5505 return 1; 5506 5507 default: return 0; 5508 } 5509 } 5510 5511 5512 5513 5514 int zx_DEC_ATTR_hrxml_References(struct zx_ctx* c, struct zx_hrxml_References_s* x) 5515 { 5516 switch (x->gg.attr->g.tok) { 5517 5518 default: return 0; 5519 } 5520 } 5521 5522 int zx_DEC_ELEM_hrxml_References(struct zx_ctx* c, struct zx_hrxml_References_s* x) 5523 { 5524 struct zx_elem_s* el = x->gg.kids; 5525 switch (el->g.tok) { 5526 case zx_hrxml_Reference_ELEM: 5527 if (!x->Reference) 5528 x->Reference = (struct zx_hrxml_Reference_s*)el; 5529 return 1; 5530 5531 default: return 0; 5532 } 5533 } 5534 5535 5536 5537 5538 int zx_DEC_ATTR_hrxml_RelatedOrganization(struct zx_ctx* c, struct zx_hrxml_RelatedOrganization_s* x) 5539 { 5540 switch (x->gg.attr->g.tok) { 5541 case zx_relationship_ATTR: x->relationship = x->gg.attr; return 1; 5542 5543 default: return 0; 5544 } 5545 } 5546 5547 int zx_DEC_ELEM_hrxml_RelatedOrganization(struct zx_ctx* c, struct zx_hrxml_RelatedOrganization_s* x) 5548 { 5549 struct zx_elem_s* el = x->gg.kids; 5550 switch (el->g.tok) { 5551 case zx_hrxml_OrganizationName_ELEM: 5552 if (!x->OrganizationName) 5553 x->OrganizationName = el; 5554 return 1; 5555 case zx_hrxml_OrganizationId_ELEM: 5556 if (!x->OrganizationId) 5557 x->OrganizationId = (struct zx_hrxml_OrganizationId_s*)el; 5558 return 1; 5559 case zx_hrxml_TaxId_ELEM: 5560 if (!x->TaxId) 5561 x->TaxId = (struct zx_hrxml_TaxId_s*)el; 5562 return 1; 5563 case zx_hrxml_LegalId_ELEM: 5564 if (!x->LegalId) 5565 x->LegalId = (struct zx_hrxml_LegalId_s*)el; 5566 return 1; 5567 case zx_hrxml_DunsNumber_ELEM: 5568 if (!x->DunsNumber) 5569 x->DunsNumber = (struct zx_hrxml_DunsNumber_s*)el; 5570 return 1; 5571 case zx_hrxml_IsPublicCompany_ELEM: 5572 if (!x->IsPublicCompany) 5573 x->IsPublicCompany = el; 5574 return 1; 5575 case zx_hrxml_Stock_ELEM: 5576 if (!x->Stock) 5577 x->Stock = (struct zx_hrxml_Stock_s*)el; 5578 return 1; 5579 case zx_hrxml_MissionStatement_ELEM: 5580 if (!x->MissionStatement) 5581 x->MissionStatement = el; 5582 return 1; 5583 case zx_hrxml_ValueStatement_ELEM: 5584 if (!x->ValueStatement) 5585 x->ValueStatement = el; 5586 return 1; 5587 case zx_hrxml_InternetDomainName_ELEM: 5588 if (!x->InternetDomainName) 5589 x->InternetDomainName = (struct zx_hrxml_InternetDomainName_s*)el; 5590 return 1; 5591 case zx_hrxml_DoingBusinessAs_ELEM: 5592 if (!x->DoingBusinessAs) 5593 x->DoingBusinessAs = (struct zx_hrxml_DoingBusinessAs_s*)el; 5594 return 1; 5595 case zx_hrxml_LegalClassification_ELEM: 5596 if (!x->LegalClassification) 5597 x->LegalClassification = (struct zx_hrxml_LegalClassification_s*)el; 5598 return 1; 5599 case zx_hrxml_IndustryCode_ELEM: 5600 if (!x->IndustryCode) 5601 x->IndustryCode = (struct zx_hrxml_IndustryCode_s*)el; 5602 return 1; 5603 case zx_hrxml_Headcount_ELEM: 5604 if (!x->Headcount) 5605 x->Headcount = el; 5606 return 1; 5607 case zx_hrxml_Description_ELEM: 5608 if (!x->Description) 5609 x->Description = (struct zx_hrxml_Description_s*)el; 5610 return 1; 5611 case zx_hrxml_WorkSite_ELEM: 5612 if (!x->WorkSite) 5613 x->WorkSite = (struct zx_hrxml_WorkSite_s*)el; 5614 return 1; 5615 case zx_hrxml_ContactInfo_ELEM: 5616 if (!x->ContactInfo) 5617 x->ContactInfo = (struct zx_hrxml_ContactInfo_s*)el; 5618 return 1; 5619 case zx_hrxml_RelatedOrganization_ELEM: 5620 if (!x->RelatedOrganization) 5621 x->RelatedOrganization = (struct zx_hrxml_RelatedOrganization_s*)el; 5622 return 1; 5623 case zx_hrxml_OrganizationalUnit_ELEM: 5624 if (!x->OrganizationalUnit) 5625 x->OrganizationalUnit = (struct zx_hrxml_OrganizationalUnit_s*)el; 5626 return 1; 5627 case zx_hrxml_UserArea_ELEM: 5628 if (!x->UserArea) 5629 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 5630 return 1; 5631 5632 default: return 0; 5633 } 5634 } 5635 5636 5637 5638 5639 int zx_DEC_ATTR_hrxml_RelatedOrganizationalUnit(struct zx_ctx* c, struct zx_hrxml_RelatedOrganizationalUnit_s* x) 5640 { 5641 switch (x->gg.attr->g.tok) { 5642 case zx_hierarchicalRole_ATTR: x->hierarchicalRole = x->gg.attr; return 1; 5643 case zx_natureOfRelationship_ATTR: x->natureOfRelationship = x->gg.attr; return 1; 5644 case zx_relationship_ATTR: x->relationship = x->gg.attr; return 1; 5645 case zx_typeOfGroup_ATTR: x->typeOfGroup = x->gg.attr; return 1; 5646 5647 default: return 0; 5648 } 5649 } 5650 5651 int zx_DEC_ELEM_hrxml_RelatedOrganizationalUnit(struct zx_ctx* c, struct zx_hrxml_RelatedOrganizationalUnit_s* x) 5652 { 5653 struct zx_elem_s* el = x->gg.kids; 5654 switch (el->g.tok) { 5655 case zx_hrxml_OrganizationalUnitName_ELEM: 5656 if (!x->OrganizationalUnitName) 5657 x->OrganizationalUnitName = el; 5658 return 1; 5659 case zx_hrxml_OrganizationalUnitId_ELEM: 5660 if (!x->OrganizationalUnitId) 5661 x->OrganizationalUnitId = (struct zx_hrxml_OrganizationalUnitId_s*)el; 5662 return 1; 5663 case zx_hrxml_OrganizationId_ELEM: 5664 if (!x->OrganizationId) 5665 x->OrganizationId = (struct zx_hrxml_OrganizationId_s*)el; 5666 return 1; 5667 case zx_hrxml_Description_ELEM: 5668 if (!x->Description) 5669 x->Description = (struct zx_hrxml_Description_s*)el; 5670 return 1; 5671 case zx_hrxml_IndustryCode_ELEM: 5672 if (!x->IndustryCode) 5673 x->IndustryCode = (struct zx_hrxml_IndustryCode_s*)el; 5674 return 1; 5675 case zx_hrxml_AccountingCode_ELEM: 5676 if (!x->AccountingCode) 5677 x->AccountingCode = (struct zx_hrxml_AccountingCode_s*)el; 5678 return 1; 5679 case zx_hrxml_WorkSite_ELEM: 5680 if (!x->WorkSite) 5681 x->WorkSite = (struct zx_hrxml_WorkSite_s*)el; 5682 return 1; 5683 case zx_hrxml_RelatedOrganizationalUnit_ELEM: 5684 if (!x->RelatedOrganizationalUnit) 5685 x->RelatedOrganizationalUnit = (struct zx_hrxml_RelatedOrganizationalUnit_s*)el; 5686 return 1; 5687 case zx_hrxml_PersonMember_ELEM: 5688 if (!x->PersonMember) 5689 x->PersonMember = (struct zx_hrxml_PersonMember_s*)el; 5690 return 1; 5691 case zx_hrxml_UserArea_ELEM: 5692 if (!x->UserArea) 5693 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 5694 return 1; 5695 5696 default: return 0; 5697 } 5698 } 5699 5700 5701 5702 5703 int zx_DEC_ATTR_hrxml_RelatedPositionPostings(struct zx_ctx* c, struct zx_hrxml_RelatedPositionPostings_s* x) 5704 { 5705 switch (x->gg.attr->g.tok) { 5706 5707 default: return 0; 5708 } 5709 } 5710 5711 int zx_DEC_ELEM_hrxml_RelatedPositionPostings(struct zx_ctx* c, struct zx_hrxml_RelatedPositionPostings_s* x) 5712 { 5713 struct zx_elem_s* el = x->gg.kids; 5714 switch (el->g.tok) { 5715 case zx_hrxml_PositionPosting_ELEM: 5716 if (!x->PositionPosting) 5717 x->PositionPosting = (struct zx_hrxml_PositionPosting_s*)el; 5718 return 1; 5719 5720 default: return 0; 5721 } 5722 } 5723 5724 5725 5726 5727 int zx_DEC_ATTR_hrxml_Relocation(struct zx_ctx* c, struct zx_hrxml_Relocation_s* x) 5728 { 5729 switch (x->gg.attr->g.tok) { 5730 case zx_relocationConsidered_ATTR: x->relocationConsidered = x->gg.attr; return 1; 5731 5732 default: return 0; 5733 } 5734 } 5735 5736 int zx_DEC_ELEM_hrxml_Relocation(struct zx_ctx* c, struct zx_hrxml_Relocation_s* x) 5737 { 5738 struct zx_elem_s* el = x->gg.kids; 5739 switch (el->g.tok) { 5740 case zx_hrxml_Comments_ELEM: 5741 if (!x->Comments) 5742 x->Comments = el; 5743 return 1; 5744 5745 default: return 0; 5746 } 5747 } 5748 5749 5750 5751 5752 int zx_DEC_ATTR_hrxml_RelocationAssistance(struct zx_ctx* c, struct zx_hrxml_RelocationAssistance_s* x) 5753 { 5754 switch (x->gg.attr->g.tok) { 5755 case zx_companyOffered_ATTR: x->companyOffered = x->gg.attr; return 1; 5756 5757 default: return 0; 5758 } 5759 } 5760 5761 int zx_DEC_ELEM_hrxml_RelocationAssistance(struct zx_ctx* c, struct zx_hrxml_RelocationAssistance_s* x) 5762 { 5763 struct zx_elem_s* el = x->gg.kids; 5764 switch (el->g.tok) { 5765 case zx_hrxml_Description_ELEM: 5766 if (!x->Description) 5767 x->Description = (struct zx_hrxml_Description_s*)el; 5768 return 1; 5769 5770 default: return 0; 5771 } 5772 } 5773 5774 5775 5776 5777 int zx_DEC_ATTR_hrxml_RemunerationPackage(struct zx_ctx* c, struct zx_hrxml_RemunerationPackage_s* x) 5778 { 5779 switch (x->gg.attr->g.tok) { 5780 5781 default: return 0; 5782 } 5783 } 5784 5785 int zx_DEC_ELEM_hrxml_RemunerationPackage(struct zx_ctx* c, struct zx_hrxml_RemunerationPackage_s* x) 5786 { 5787 struct zx_elem_s* el = x->gg.kids; 5788 switch (el->g.tok) { 5789 case zx_hrxml_BasePay_ELEM: 5790 if (!x->BasePay) 5791 x->BasePay = (struct zx_hrxml_BasePay_s*)el; 5792 return 1; 5793 case zx_hrxml_OtherPay_ELEM: 5794 if (!x->OtherPay) 5795 x->OtherPay = (struct zx_hrxml_OtherPay_s*)el; 5796 return 1; 5797 case zx_hrxml_Benefits_ELEM: 5798 if (!x->Benefits) 5799 x->Benefits = (struct zx_hrxml_Benefits_s*)el; 5800 return 1; 5801 case zx_hrxml_UserArea_ELEM: 5802 if (!x->UserArea) 5803 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 5804 return 1; 5805 5806 default: return 0; 5807 } 5808 } 5809 5810 5811 5812 5813 int zx_DEC_ATTR_hrxml_Resume(struct zx_ctx* c, struct zx_hrxml_Resume_s* x) 5814 { 5815 switch (x->gg.attr->g.tok) { 5816 case zx_lang_ATTR|zx_xml_NS: x->lang = x->gg.attr; return 1; 5817 5818 default: return 0; 5819 } 5820 } 5821 5822 int zx_DEC_ELEM_hrxml_Resume(struct zx_ctx* c, struct zx_hrxml_Resume_s* x) 5823 { 5824 struct zx_elem_s* el = x->gg.kids; 5825 switch (el->g.tok) { 5826 case zx_hrxml_ResumeId_ELEM: 5827 if (!x->ResumeId) 5828 x->ResumeId = el; 5829 return 1; 5830 case zx_hrxml_DistributionGuidelines_ELEM: 5831 if (!x->DistributionGuidelines) 5832 x->DistributionGuidelines = el; 5833 return 1; 5834 case zx_hrxml_StructuredXMLResume_ELEM: 5835 if (!x->StructuredXMLResume) 5836 x->StructuredXMLResume = (struct zx_hrxml_StructuredXMLResume_s*)el; 5837 return 1; 5838 case zx_hrxml_NonXMLResume_ELEM: 5839 if (!x->NonXMLResume) 5840 x->NonXMLResume = (struct zx_hrxml_NonXMLResume_s*)el; 5841 return 1; 5842 case zx_hrxml_UserArea_ELEM: 5843 if (!x->UserArea) 5844 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 5845 return 1; 5846 5847 default: return 0; 5848 } 5849 } 5850 5851 5852 5853 5854 int zx_DEC_ATTR_hrxml_ResumeAdditionalItem(struct zx_ctx* c, struct zx_hrxml_ResumeAdditionalItem_s* x) 5855 { 5856 switch (x->gg.attr->g.tok) { 5857 case zx_type_ATTR: x->type = x->gg.attr; return 1; 5858 5859 default: return 0; 5860 } 5861 } 5862 5863 int zx_DEC_ELEM_hrxml_ResumeAdditionalItem(struct zx_ctx* c, struct zx_hrxml_ResumeAdditionalItem_s* x) 5864 { 5865 struct zx_elem_s* el = x->gg.kids; 5866 switch (el->g.tok) { 5867 case zx_hrxml_EffectiveDate_ELEM: 5868 if (!x->EffectiveDate) 5869 x->EffectiveDate = (struct zx_hrxml_EffectiveDate_s*)el; 5870 return 1; 5871 case zx_hrxml_Description_ELEM: 5872 if (!x->Description) 5873 x->Description = (struct zx_hrxml_Description_s*)el; 5874 return 1; 5875 5876 default: return 0; 5877 } 5878 } 5879 5880 5881 5882 5883 int zx_DEC_ATTR_hrxml_ResumeAdditionalItems(struct zx_ctx* c, struct zx_hrxml_ResumeAdditionalItems_s* x) 5884 { 5885 switch (x->gg.attr->g.tok) { 5886 5887 default: return 0; 5888 } 5889 } 5890 5891 int zx_DEC_ELEM_hrxml_ResumeAdditionalItems(struct zx_ctx* c, struct zx_hrxml_ResumeAdditionalItems_s* x) 5892 { 5893 struct zx_elem_s* el = x->gg.kids; 5894 switch (el->g.tok) { 5895 case zx_hrxml_ResumeAdditionalItem_ELEM: 5896 if (!x->ResumeAdditionalItem) 5897 x->ResumeAdditionalItem = (struct zx_hrxml_ResumeAdditionalItem_s*)el; 5898 return 1; 5899 5900 default: return 0; 5901 } 5902 } 5903 5904 5905 5906 5907 int zx_DEC_ATTR_hrxml_RoleId(struct zx_ctx* c, struct zx_hrxml_RoleId_s* x) 5908 { 5909 switch (x->gg.attr->g.tok) { 5910 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 5911 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 5912 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 5913 5914 default: return 0; 5915 } 5916 } 5917 5918 int zx_DEC_ELEM_hrxml_RoleId(struct zx_ctx* c, struct zx_hrxml_RoleId_s* x) 5919 { 5920 struct zx_elem_s* el = x->gg.kids; 5921 switch (el->g.tok) { 5922 case zx_hrxml_IdValue_ELEM: 5923 if (!x->IdValue) 5924 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 5925 return 1; 5926 5927 default: return 0; 5928 } 5929 } 5930 5931 5932 5933 5934 int zx_DEC_ATTR_hrxml_SEPPhysicalLocation(struct zx_ctx* c, struct zx_hrxml_SEPPhysicalLocation_s* x) 5935 { 5936 switch (x->gg.attr->g.tok) { 5937 5938 default: return 0; 5939 } 5940 } 5941 5942 int zx_DEC_ELEM_hrxml_SEPPhysicalLocation(struct zx_ctx* c, struct zx_hrxml_SEPPhysicalLocation_s* x) 5943 { 5944 struct zx_elem_s* el = x->gg.kids; 5945 switch (el->g.tok) { 5946 case zx_hrxml_Id_ELEM: 5947 if (!x->Id) 5948 x->Id = (struct zx_hrxml_Id_s*)el; 5949 return 1; 5950 case zx_hrxml_Name_ELEM: 5951 if (!x->Name) 5952 x->Name = el; 5953 return 1; 5954 case zx_hrxml_SpatialLocation_ELEM: 5955 if (!x->SpatialLocation) 5956 x->SpatialLocation = (struct zx_hrxml_SpatialLocation_s*)el; 5957 return 1; 5958 case zx_hrxml_TravelDirections_ELEM: 5959 if (!x->TravelDirections) 5960 x->TravelDirections = (struct zx_hrxml_TravelDirections_s*)el; 5961 return 1; 5962 case zx_hrxml_Area_ELEM: 5963 if (!x->Area) 5964 x->Area = (struct zx_hrxml_Area_s*)el; 5965 return 1; 5966 case zx_hrxml_PostalAddress_ELEM: 5967 if (!x->PostalAddress) 5968 x->PostalAddress = (struct zx_hrxml_PostalAddress_s*)el; 5969 return 1; 5970 case zx_hrxml_Comments_ELEM: 5971 if (!x->Comments) 5972 x->Comments = el; 5973 return 1; 5974 5975 default: return 0; 5976 } 5977 } 5978 5979 5980 5981 5982 int zx_DEC_ATTR_hrxml_SafetyEquipment(struct zx_ctx* c, struct zx_hrxml_SafetyEquipment_s* x) 5983 { 5984 switch (x->gg.attr->g.tok) { 5985 case zx_suppliedByOrganization_ATTR: x->suppliedByOrganization = x->gg.attr; return 1; 5986 5987 default: return 0; 5988 } 5989 } 5990 5991 int zx_DEC_ELEM_hrxml_SafetyEquipment(struct zx_ctx* c, struct zx_hrxml_SafetyEquipment_s* x) 5992 { 5993 struct zx_elem_s* el = x->gg.kids; 5994 switch (el->g.tok) { 5995 5996 default: return 0; 5997 } 5998 } 5999 6000 6001 6002 6003 int zx_DEC_ATTR_hrxml_School(struct zx_ctx* c, struct zx_hrxml_School_s* x) 6004 { 6005 switch (x->gg.attr->g.tok) { 6006 case zx_type_ATTR: x->type = x->gg.attr; return 1; 6007 6008 default: return 0; 6009 } 6010 } 6011 6012 int zx_DEC_ELEM_hrxml_School(struct zx_ctx* c, struct zx_hrxml_School_s* x) 6013 { 6014 struct zx_elem_s* el = x->gg.kids; 6015 switch (el->g.tok) { 6016 case zx_hrxml_InternetDomainName_ELEM: 6017 if (!x->InternetDomainName) 6018 x->InternetDomainName = (struct zx_hrxml_InternetDomainName_s*)el; 6019 return 1; 6020 case zx_hrxml_SchoolId_ELEM: 6021 if (!x->SchoolId) 6022 x->SchoolId = (struct zx_hrxml_SchoolId_s*)el; 6023 return 1; 6024 case zx_hrxml_SchoolName_ELEM: 6025 if (!x->SchoolName) 6026 x->SchoolName = el; 6027 return 1; 6028 6029 default: return 0; 6030 } 6031 } 6032 6033 6034 6035 6036 int zx_DEC_ATTR_hrxml_SchoolId(struct zx_ctx* c, struct zx_hrxml_SchoolId_s* x) 6037 { 6038 switch (x->gg.attr->g.tok) { 6039 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 6040 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 6041 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 6042 6043 default: return 0; 6044 } 6045 } 6046 6047 int zx_DEC_ELEM_hrxml_SchoolId(struct zx_ctx* c, struct zx_hrxml_SchoolId_s* x) 6048 { 6049 struct zx_elem_s* el = x->gg.kids; 6050 switch (el->g.tok) { 6051 case zx_hrxml_IdValue_ELEM: 6052 if (!x->IdValue) 6053 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 6054 return 1; 6055 6056 default: return 0; 6057 } 6058 } 6059 6060 6061 6062 6063 int zx_DEC_ATTR_hrxml_SchoolOrInstitution(struct zx_ctx* c, struct zx_hrxml_SchoolOrInstitution_s* x) 6064 { 6065 switch (x->gg.attr->g.tok) { 6066 case zx_schoolType_ATTR: x->schoolType = x->gg.attr; return 1; 6067 6068 default: return 0; 6069 } 6070 } 6071 6072 int zx_DEC_ELEM_hrxml_SchoolOrInstitution(struct zx_ctx* c, struct zx_hrxml_SchoolOrInstitution_s* x) 6073 { 6074 struct zx_elem_s* el = x->gg.kids; 6075 switch (el->g.tok) { 6076 case zx_hrxml_SchoolName_ELEM: 6077 if (!x->SchoolName) 6078 x->SchoolName = el; 6079 return 1; 6080 case zx_hrxml_School_ELEM: 6081 if (!x->School) 6082 x->School = (struct zx_hrxml_School_s*)el; 6083 return 1; 6084 case zx_hrxml_LocationSummary_ELEM: 6085 if (!x->LocationSummary) 6086 x->LocationSummary = (struct zx_hrxml_LocationSummary_s*)el; 6087 return 1; 6088 case zx_hrxml_PostalAddress_ELEM: 6089 if (!x->PostalAddress) 6090 x->PostalAddress = (struct zx_hrxml_PostalAddress_s*)el; 6091 return 1; 6092 case zx_hrxml_OrganizationUnit_ELEM: 6093 if (!x->OrganizationUnit) 6094 x->OrganizationUnit = (struct zx_hrxml_OrganizationUnit_s*)el; 6095 return 1; 6096 case zx_hrxml_Degree_ELEM: 6097 if (!x->Degree) 6098 x->Degree = (struct zx_hrxml_Degree_s*)el; 6099 return 1; 6100 case zx_hrxml_Major_ELEM: 6101 if (!x->Major) 6102 x->Major = el; 6103 return 1; 6104 case zx_hrxml_Minor_ELEM: 6105 if (!x->Minor) 6106 x->Minor = el; 6107 return 1; 6108 case zx_hrxml_Measure_ELEM: 6109 if (!x->Measure) 6110 x->Measure = (struct zx_hrxml_Measure_s*)el; 6111 return 1; 6112 case zx_hrxml_DatesOfAttendance_ELEM: 6113 if (!x->DatesOfAttendance) 6114 x->DatesOfAttendance = (struct zx_hrxml_DatesOfAttendance_s*)el; 6115 return 1; 6116 case zx_hrxml_Comments_ELEM: 6117 if (!x->Comments) 6118 x->Comments = el; 6119 return 1; 6120 case zx_hrxml_ISCEDInstitutionClassification_ELEM: 6121 if (!x->ISCEDInstitutionClassification) 6122 x->ISCEDInstitutionClassification = el; 6123 return 1; 6124 case zx_hrxml_LocalInstitutionClassification_ELEM: 6125 if (!x->LocalInstitutionClassification) 6126 x->LocalInstitutionClassification = (struct zx_hrxml_LocalInstitutionClassification_s*)el; 6127 return 1; 6128 case zx_hrxml_UserArea_ELEM: 6129 if (!x->UserArea) 6130 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 6131 return 1; 6132 6133 default: return 0; 6134 } 6135 } 6136 6137 6138 6139 6140 int zx_DEC_ATTR_hrxml_Score(struct zx_ctx* c, struct zx_hrxml_Score_s* x) 6141 { 6142 switch (x->gg.attr->g.tok) { 6143 case zx_unitOfMeasure_ATTR: x->unitOfMeasure = x->gg.attr; return 1; 6144 6145 default: return 0; 6146 } 6147 } 6148 6149 int zx_DEC_ELEM_hrxml_Score(struct zx_ctx* c, struct zx_hrxml_Score_s* x) 6150 { 6151 struct zx_elem_s* el = x->gg.kids; 6152 switch (el->g.tok) { 6153 6154 default: return 0; 6155 } 6156 } 6157 6158 6159 6160 6161 int zx_DEC_ATTR_hrxml_SearchCriteria(struct zx_ctx* c, struct zx_hrxml_SearchCriteria_s* x) 6162 { 6163 switch (x->gg.attr->g.tok) { 6164 6165 default: return 0; 6166 } 6167 } 6168 6169 int zx_DEC_ELEM_hrxml_SearchCriteria(struct zx_ctx* c, struct zx_hrxml_SearchCriteria_s* x) 6170 { 6171 struct zx_elem_s* el = x->gg.kids; 6172 switch (el->g.tok) { 6173 case zx_hrxml_SearchCriteriaId_ELEM: 6174 if (!x->SearchCriteriaId) 6175 x->SearchCriteriaId = (struct zx_hrxml_SearchCriteriaId_s*)el; 6176 return 1; 6177 case zx_hrxml_SearchTarget_ELEM: 6178 if (!x->SearchTarget) 6179 x->SearchTarget = el; 6180 return 1; 6181 case zx_hrxml_UserId_ELEM: 6182 if (!x->UserId) 6183 x->UserId = (struct zx_hrxml_UserId_s*)el; 6184 return 1; 6185 case zx_hrxml_SearchTimeStamp_ELEM: 6186 if (!x->SearchTimeStamp) 6187 x->SearchTimeStamp = el; 6188 return 1; 6189 case zx_hrxml_SearchString_ELEM: 6190 if (!x->SearchString) 6191 x->SearchString = el; 6192 return 1; 6193 case zx_hrxml_SearchCriterion_ELEM: 6194 if (!x->SearchCriterion) 6195 x->SearchCriterion = (struct zx_hrxml_SearchCriterion_s*)el; 6196 return 1; 6197 case zx_hrxml_UserArea_ELEM: 6198 if (!x->UserArea) 6199 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 6200 return 1; 6201 6202 default: return 0; 6203 } 6204 } 6205 6206 6207 6208 6209 int zx_DEC_ATTR_hrxml_SearchCriteriaId(struct zx_ctx* c, struct zx_hrxml_SearchCriteriaId_s* x) 6210 { 6211 switch (x->gg.attr->g.tok) { 6212 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 6213 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 6214 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 6215 6216 default: return 0; 6217 } 6218 } 6219 6220 int zx_DEC_ELEM_hrxml_SearchCriteriaId(struct zx_ctx* c, struct zx_hrxml_SearchCriteriaId_s* x) 6221 { 6222 struct zx_elem_s* el = x->gg.kids; 6223 switch (el->g.tok) { 6224 case zx_hrxml_IdValue_ELEM: 6225 if (!x->IdValue) 6226 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 6227 return 1; 6228 6229 default: return 0; 6230 } 6231 } 6232 6233 6234 6235 6236 int zx_DEC_ATTR_hrxml_SearchCriterion(struct zx_ctx* c, struct zx_hrxml_SearchCriterion_s* x) 6237 { 6238 switch (x->gg.attr->g.tok) { 6239 6240 default: return 0; 6241 } 6242 } 6243 6244 int zx_DEC_ELEM_hrxml_SearchCriterion(struct zx_ctx* c, struct zx_hrxml_SearchCriterion_s* x) 6245 { 6246 struct zx_elem_s* el = x->gg.kids; 6247 switch (el->g.tok) { 6248 case zx_hrxml_CriterionName_ELEM: 6249 if (!x->CriterionName) 6250 x->CriterionName = el; 6251 return 1; 6252 case zx_hrxml_CriterionValue_ELEM: 6253 if (!x->CriterionValue) 6254 x->CriterionValue = el; 6255 return 1; 6256 case zx_hrxml_Weight_ELEM: 6257 if (!x->Weight) 6258 x->Weight = (struct zx_hrxml_Weight_s*)el; 6259 return 1; 6260 6261 default: return 0; 6262 } 6263 } 6264 6265 6266 6267 6268 int zx_DEC_ATTR_hrxml_SearchRelevanceScore(struct zx_ctx* c, struct zx_hrxml_SearchRelevanceScore_s* x) 6269 { 6270 switch (x->gg.attr->g.tok) { 6271 case zx_unitOfMeasure_ATTR: x->unitOfMeasure = x->gg.attr; return 1; 6272 6273 default: return 0; 6274 } 6275 } 6276 6277 int zx_DEC_ELEM_hrxml_SearchRelevanceScore(struct zx_ctx* c, struct zx_hrxml_SearchRelevanceScore_s* x) 6278 { 6279 struct zx_elem_s* el = x->gg.kids; 6280 switch (el->g.tok) { 6281 6282 default: return 0; 6283 } 6284 } 6285 6286 6287 6288 6289 int zx_DEC_ATTR_hrxml_SearchResult(struct zx_ctx* c, struct zx_hrxml_SearchResult_s* x) 6290 { 6291 switch (x->gg.attr->g.tok) { 6292 6293 default: return 0; 6294 } 6295 } 6296 6297 int zx_DEC_ELEM_hrxml_SearchResult(struct zx_ctx* c, struct zx_hrxml_SearchResult_s* x) 6298 { 6299 struct zx_elem_s* el = x->gg.kids; 6300 switch (el->g.tok) { 6301 case zx_hrxml_SearchResultId_ELEM: 6302 if (!x->SearchResultId) 6303 x->SearchResultId = (struct zx_hrxml_SearchResultId_s*)el; 6304 return 1; 6305 case zx_hrxml_SearchTarget_ELEM: 6306 if (!x->SearchTarget) 6307 x->SearchTarget = el; 6308 return 1; 6309 case zx_hrxml_UserId_ELEM: 6310 if (!x->UserId) 6311 x->UserId = (struct zx_hrxml_UserId_s*)el; 6312 return 1; 6313 case zx_hrxml_SearchTimeStamp_ELEM: 6314 if (!x->SearchTimeStamp) 6315 x->SearchTimeStamp = el; 6316 return 1; 6317 case zx_hrxml_MatchedObjectId_ELEM: 6318 if (!x->MatchedObjectId) 6319 x->MatchedObjectId = (struct zx_hrxml_MatchedObjectId_s*)el; 6320 return 1; 6321 case zx_hrxml_SearchRelevanceScore_ELEM: 6322 if (!x->SearchRelevanceScore) 6323 x->SearchRelevanceScore = (struct zx_hrxml_SearchRelevanceScore_s*)el; 6324 return 1; 6325 case zx_hrxml_SearchRelevanceRank_ELEM: 6326 if (!x->SearchRelevanceRank) 6327 x->SearchRelevanceRank = el; 6328 return 1; 6329 case zx_hrxml_SearchResultCount_ELEM: 6330 if (!x->SearchResultCount) 6331 x->SearchResultCount = el; 6332 return 1; 6333 case zx_hrxml_RankedSearchResults_ELEM: 6334 if (!x->RankedSearchResults) 6335 x->RankedSearchResults = (struct zx_hrxml_RankedSearchResults_s*)el; 6336 return 1; 6337 case zx_hrxml_UserArea_ELEM: 6338 if (!x->UserArea) 6339 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 6340 return 1; 6341 6342 default: return 0; 6343 } 6344 } 6345 6346 6347 6348 6349 int zx_DEC_ATTR_hrxml_SearchResultId(struct zx_ctx* c, struct zx_hrxml_SearchResultId_s* x) 6350 { 6351 switch (x->gg.attr->g.tok) { 6352 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 6353 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 6354 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 6355 6356 default: return 0; 6357 } 6358 } 6359 6360 int zx_DEC_ELEM_hrxml_SearchResultId(struct zx_ctx* c, struct zx_hrxml_SearchResultId_s* x) 6361 { 6362 struct zx_elem_s* el = x->gg.kids; 6363 switch (el->g.tok) { 6364 case zx_hrxml_IdValue_ELEM: 6365 if (!x->IdValue) 6366 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 6367 return 1; 6368 6369 default: return 0; 6370 } 6371 } 6372 6373 6374 6375 6376 int zx_DEC_ATTR_hrxml_SecurityCredential(struct zx_ctx* c, struct zx_hrxml_SecurityCredential_s* x) 6377 { 6378 switch (x->gg.attr->g.tok) { 6379 6380 default: return 0; 6381 } 6382 } 6383 6384 int zx_DEC_ELEM_hrxml_SecurityCredential(struct zx_ctx* c, struct zx_hrxml_SecurityCredential_s* x) 6385 { 6386 struct zx_elem_s* el = x->gg.kids; 6387 switch (el->g.tok) { 6388 case zx_hrxml_Name_ELEM: 6389 if (!x->Name) 6390 x->Name = el; 6391 return 1; 6392 case zx_hrxml_Id_ELEM: 6393 if (!x->Id) 6394 x->Id = (struct zx_hrxml_Id_s*)el; 6395 return 1; 6396 case zx_hrxml_IssuingAuthority_ELEM: 6397 if (!x->IssuingAuthority) 6398 x->IssuingAuthority = (struct zx_hrxml_IssuingAuthority_s*)el; 6399 return 1; 6400 case zx_hrxml_Description_ELEM: 6401 if (!x->Description) 6402 x->Description = (struct zx_hrxml_Description_s*)el; 6403 return 1; 6404 case zx_hrxml_EffectiveDate_ELEM: 6405 if (!x->EffectiveDate) 6406 x->EffectiveDate = (struct zx_hrxml_EffectiveDate_s*)el; 6407 return 1; 6408 6409 default: return 0; 6410 } 6411 } 6412 6413 6414 6415 6416 int zx_DEC_ATTR_hrxml_SecurityCredentials(struct zx_ctx* c, struct zx_hrxml_SecurityCredentials_s* x) 6417 { 6418 switch (x->gg.attr->g.tok) { 6419 6420 default: return 0; 6421 } 6422 } 6423 6424 int zx_DEC_ELEM_hrxml_SecurityCredentials(struct zx_ctx* c, struct zx_hrxml_SecurityCredentials_s* x) 6425 { 6426 struct zx_elem_s* el = x->gg.kids; 6427 switch (el->g.tok) { 6428 case zx_hrxml_SecurityCredential_ELEM: 6429 if (!x->SecurityCredential) 6430 x->SecurityCredential = (struct zx_hrxml_SecurityCredential_s*)el; 6431 return 1; 6432 6433 default: return 0; 6434 } 6435 } 6436 6437 6438 6439 6440 int zx_DEC_ATTR_hrxml_ServiceDetail(struct zx_ctx* c, struct zx_hrxml_ServiceDetail_s* x) 6441 { 6442 switch (x->gg.attr->g.tok) { 6443 case zx_branch_ATTR: x->branch = x->gg.attr; return 1; 6444 6445 default: return 0; 6446 } 6447 } 6448 6449 int zx_DEC_ELEM_hrxml_ServiceDetail(struct zx_ctx* c, struct zx_hrxml_ServiceDetail_s* x) 6450 { 6451 struct zx_elem_s* el = x->gg.kids; 6452 switch (el->g.tok) { 6453 case zx_hrxml_UnitOrDivision_ELEM: 6454 if (!x->UnitOrDivision) 6455 x->UnitOrDivision = el; 6456 return 1; 6457 case zx_hrxml_RankAchieved_ELEM: 6458 if (!x->RankAchieved) 6459 x->RankAchieved = (struct zx_hrxml_RankAchieved_s*)el; 6460 return 1; 6461 case zx_hrxml_DatesOfService_ELEM: 6462 if (!x->DatesOfService) 6463 x->DatesOfService = (struct zx_hrxml_DatesOfService_s*)el; 6464 return 1; 6465 case zx_hrxml_Campaign_ELEM: 6466 if (!x->Campaign) 6467 x->Campaign = el; 6468 return 1; 6469 case zx_hrxml_AreaOfExpertise_ELEM: 6470 if (!x->AreaOfExpertise) 6471 x->AreaOfExpertise = el; 6472 return 1; 6473 case zx_hrxml_RecognitionAchieved_ELEM: 6474 if (!x->RecognitionAchieved) 6475 x->RecognitionAchieved = el; 6476 return 1; 6477 case zx_hrxml_DisciplinaryAction_ELEM: 6478 if (!x->DisciplinaryAction) 6479 x->DisciplinaryAction = el; 6480 return 1; 6481 case zx_hrxml_DischargeStatus_ELEM: 6482 if (!x->DischargeStatus) 6483 x->DischargeStatus = el; 6484 return 1; 6485 case zx_hrxml_UserArea_ELEM: 6486 if (!x->UserArea) 6487 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 6488 return 1; 6489 6490 default: return 0; 6491 } 6492 } 6493 6494 6495 6496 6497 int zx_DEC_ATTR_hrxml_ServiceNumber(struct zx_ctx* c, struct zx_hrxml_ServiceNumber_s* x) 6498 { 6499 switch (x->gg.attr->g.tok) { 6500 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 6501 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 6502 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 6503 6504 default: return 0; 6505 } 6506 } 6507 6508 int zx_DEC_ELEM_hrxml_ServiceNumber(struct zx_ctx* c, struct zx_hrxml_ServiceNumber_s* x) 6509 { 6510 struct zx_elem_s* el = x->gg.kids; 6511 switch (el->g.tok) { 6512 case zx_hrxml_IdValue_ELEM: 6513 if (!x->IdValue) 6514 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 6515 return 1; 6516 6517 default: return 0; 6518 } 6519 } 6520 6521 6522 6523 6524 int zx_DEC_ATTR_hrxml_Shift(struct zx_ctx* c, struct zx_hrxml_Shift_s* x) 6525 { 6526 switch (x->gg.attr->g.tok) { 6527 case zx_shiftPeriod_ATTR: x->shiftPeriod = x->gg.attr; return 1; 6528 6529 default: return 0; 6530 } 6531 } 6532 6533 int zx_DEC_ELEM_hrxml_Shift(struct zx_ctx* c, struct zx_hrxml_Shift_s* x) 6534 { 6535 struct zx_elem_s* el = x->gg.kids; 6536 switch (el->g.tok) { 6537 case zx_hrxml_Id_ELEM: 6538 if (!x->Id) 6539 x->Id = (struct zx_hrxml_Id_s*)el; 6540 return 1; 6541 case zx_hrxml_Name_ELEM: 6542 if (!x->Name) 6543 x->Name = el; 6544 return 1; 6545 case zx_hrxml_Hours_ELEM: 6546 if (!x->Hours) 6547 x->Hours = el; 6548 return 1; 6549 case zx_hrxml_StartTime_ELEM: 6550 if (!x->StartTime) 6551 x->StartTime = el; 6552 return 1; 6553 case zx_hrxml_EndTime_ELEM: 6554 if (!x->EndTime) 6555 x->EndTime = el; 6556 return 1; 6557 case zx_hrxml_PayTypeHours_ELEM: 6558 if (!x->PayTypeHours) 6559 x->PayTypeHours = el; 6560 return 1; 6561 case zx_hrxml_Comments_ELEM: 6562 if (!x->Comments) 6563 x->Comments = el; 6564 return 1; 6565 6566 default: return 0; 6567 } 6568 } 6569 6570 6571 6572 6573 int zx_DEC_ATTR_hrxml_SourceType(struct zx_ctx* c, struct zx_hrxml_SourceType_s* x) 6574 { 6575 switch (x->gg.attr->g.tok) { 6576 6577 default: return 0; 6578 } 6579 } 6580 6581 int zx_DEC_ELEM_hrxml_SourceType(struct zx_ctx* c, struct zx_hrxml_SourceType_s* x) 6582 { 6583 struct zx_elem_s* el = x->gg.kids; 6584 switch (el->g.tok) { 6585 case zx_hrxml_StandardValue_ELEM: 6586 if (!x->StandardValue) 6587 x->StandardValue = el; 6588 return 1; 6589 case zx_hrxml_NonStandardValue_ELEM: 6590 if (!x->NonStandardValue) 6591 x->NonStandardValue = el; 6592 return 1; 6593 6594 default: return 0; 6595 } 6596 } 6597 6598 6599 6600 6601 int zx_DEC_ATTR_hrxml_SpatialLocation(struct zx_ctx* c, struct zx_hrxml_SpatialLocation_s* x) 6602 { 6603 switch (x->gg.attr->g.tok) { 6604 6605 default: return 0; 6606 } 6607 } 6608 6609 int zx_DEC_ELEM_hrxml_SpatialLocation(struct zx_ctx* c, struct zx_hrxml_SpatialLocation_s* x) 6610 { 6611 struct zx_elem_s* el = x->gg.kids; 6612 switch (el->g.tok) { 6613 case zx_hrxml_Latitude_ELEM: 6614 if (!x->Latitude) 6615 x->Latitude = (struct zx_hrxml_Latitude_s*)el; 6616 return 1; 6617 case zx_hrxml_Longitude_ELEM: 6618 if (!x->Longitude) 6619 x->Longitude = (struct zx_hrxml_Longitude_s*)el; 6620 return 1; 6621 case zx_hrxml_Altitude_ELEM: 6622 if (!x->Altitude) 6623 x->Altitude = el; 6624 return 1; 6625 case zx_hrxml_AltitudeMeanSeaLevel_ELEM: 6626 if (!x->AltitudeMeanSeaLevel) 6627 x->AltitudeMeanSeaLevel = el; 6628 return 1; 6629 case zx_hrxml_HorizontalAccuracy_ELEM: 6630 if (!x->HorizontalAccuracy) 6631 x->HorizontalAccuracy = (struct zx_hrxml_HorizontalAccuracy_s*)el; 6632 return 1; 6633 case zx_hrxml_VerticalAccuracy_ELEM: 6634 if (!x->VerticalAccuracy) 6635 x->VerticalAccuracy = (struct zx_hrxml_VerticalAccuracy_s*)el; 6636 return 1; 6637 6638 default: return 0; 6639 } 6640 } 6641 6642 6643 6644 6645 int zx_DEC_ATTR_hrxml_SpeakingEvent(struct zx_ctx* c, struct zx_hrxml_SpeakingEvent_s* x) 6646 { 6647 switch (x->gg.attr->g.tok) { 6648 case zx_type_ATTR: x->type = x->gg.attr; return 1; 6649 6650 default: return 0; 6651 } 6652 } 6653 6654 int zx_DEC_ELEM_hrxml_SpeakingEvent(struct zx_ctx* c, struct zx_hrxml_SpeakingEvent_s* x) 6655 { 6656 struct zx_elem_s* el = x->gg.kids; 6657 switch (el->g.tok) { 6658 case zx_hrxml_Title_ELEM: 6659 if (!x->Title) 6660 x->Title = el; 6661 return 1; 6662 case zx_hrxml_Role_ELEM: 6663 if (!x->Role) 6664 x->Role = el; 6665 return 1; 6666 case zx_hrxml_StartDate_ELEM: 6667 if (!x->StartDate) 6668 x->StartDate = (struct zx_hrxml_StartDate_s*)el; 6669 return 1; 6670 case zx_hrxml_EndDate_ELEM: 6671 if (!x->EndDate) 6672 x->EndDate = (struct zx_hrxml_EndDate_s*)el; 6673 return 1; 6674 case zx_hrxml_EventName_ELEM: 6675 if (!x->EventName) 6676 x->EventName = el; 6677 return 1; 6678 case zx_hrxml_EventType_ELEM: 6679 if (!x->EventType) 6680 x->EventType = el; 6681 return 1; 6682 case zx_hrxml_Location_ELEM: 6683 if (!x->Location) 6684 x->Location = el; 6685 return 1; 6686 case zx_hrxml_Description_ELEM: 6687 if (!x->Description) 6688 x->Description = (struct zx_hrxml_Description_s*)el; 6689 return 1; 6690 case zx_hrxml_AffiliatedOrganization_ELEM: 6691 if (!x->AffiliatedOrganization) 6692 x->AffiliatedOrganization = el; 6693 return 1; 6694 case zx_hrxml_Link_ELEM: 6695 if (!x->Link) 6696 x->Link = el; 6697 return 1; 6698 6699 default: return 0; 6700 } 6701 } 6702 6703 6704 6705 6706 int zx_DEC_ATTR_hrxml_SpeakingEventsHistory(struct zx_ctx* c, struct zx_hrxml_SpeakingEventsHistory_s* x) 6707 { 6708 switch (x->gg.attr->g.tok) { 6709 6710 default: return 0; 6711 } 6712 } 6713 6714 int zx_DEC_ELEM_hrxml_SpeakingEventsHistory(struct zx_ctx* c, struct zx_hrxml_SpeakingEventsHistory_s* x) 6715 { 6716 struct zx_elem_s* el = x->gg.kids; 6717 switch (el->g.tok) { 6718 case zx_hrxml_SpeakingEvent_ELEM: 6719 if (!x->SpeakingEvent) 6720 x->SpeakingEvent = (struct zx_hrxml_SpeakingEvent_s*)el; 6721 return 1; 6722 6723 default: return 0; 6724 } 6725 } 6726 6727 6728 6729 6730 int zx_DEC_ATTR_hrxml_SpecifiedCompetencyReference(struct zx_ctx* c, struct zx_hrxml_SpecifiedCompetencyReference_s* x) 6731 { 6732 switch (x->gg.attr->g.tok) { 6733 6734 default: return 0; 6735 } 6736 } 6737 6738 int zx_DEC_ELEM_hrxml_SpecifiedCompetencyReference(struct zx_ctx* c, struct zx_hrxml_SpecifiedCompetencyReference_s* x) 6739 { 6740 struct zx_elem_s* el = x->gg.kids; 6741 switch (el->g.tok) { 6742 case zx_hrxml_CompetencyId_ELEM: 6743 if (!x->CompetencyId) 6744 x->CompetencyId = (struct zx_hrxml_CompetencyId_s*)el; 6745 return 1; 6746 case zx_hrxml_ProficencyLevel_ELEM: 6747 if (!x->ProficencyLevel) 6748 x->ProficencyLevel = el; 6749 return 1; 6750 6751 default: return 0; 6752 } 6753 } 6754 6755 6756 6757 6758 int zx_DEC_ATTR_hrxml_StartDate(struct zx_ctx* c, struct zx_hrxml_StartDate_s* x) 6759 { 6760 switch (x->gg.attr->g.tok) { 6761 case zx_dateDescription_ATTR: x->dateDescription = x->gg.attr; return 1; 6762 6763 default: return 0; 6764 } 6765 } 6766 6767 int zx_DEC_ELEM_hrxml_StartDate(struct zx_ctx* c, struct zx_hrxml_StartDate_s* x) 6768 { 6769 struct zx_elem_s* el = x->gg.kids; 6770 switch (el->g.tok) { 6771 case zx_hrxml_AnyDate_ELEM: 6772 if (!x->AnyDate) 6773 x->AnyDate = el; 6774 return 1; 6775 case zx_hrxml_YearMonth_ELEM: 6776 if (!x->YearMonth) 6777 x->YearMonth = el; 6778 return 1; 6779 case zx_hrxml_Year_ELEM: 6780 if (!x->Year) 6781 x->Year = el; 6782 return 1; 6783 case zx_hrxml_MonthDay_ELEM: 6784 if (!x->MonthDay) 6785 x->MonthDay = el; 6786 return 1; 6787 case zx_hrxml_StringDate_ELEM: 6788 if (!x->StringDate) 6789 x->StringDate = el; 6790 return 1; 6791 6792 default: return 0; 6793 } 6794 } 6795 6796 6797 6798 6799 int zx_DEC_ATTR_hrxml_StartingCompensation(struct zx_ctx* c, struct zx_hrxml_StartingCompensation_s* x) 6800 { 6801 switch (x->gg.attr->g.tok) { 6802 case zx_currency_ATTR: x->currency = x->gg.attr; return 1; 6803 case zx_intervalType_ATTR: x->intervalType = x->gg.attr; return 1; 6804 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 6805 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 6806 6807 default: return 0; 6808 } 6809 } 6810 6811 int zx_DEC_ELEM_hrxml_StartingCompensation(struct zx_ctx* c, struct zx_hrxml_StartingCompensation_s* x) 6812 { 6813 struct zx_elem_s* el = x->gg.kids; 6814 switch (el->g.tok) { 6815 6816 default: return 0; 6817 } 6818 } 6819 6820 6821 6822 6823 int zx_DEC_ATTR_hrxml_Status(struct zx_ctx* c, struct zx_hrxml_Status_s* x) 6824 { 6825 switch (x->gg.attr->g.tok) { 6826 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 6827 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 6828 6829 default: return 0; 6830 } 6831 } 6832 6833 int zx_DEC_ELEM_hrxml_Status(struct zx_ctx* c, struct zx_hrxml_Status_s* x) 6834 { 6835 struct zx_elem_s* el = x->gg.kids; 6836 switch (el->g.tok) { 6837 6838 default: return 0; 6839 } 6840 } 6841 6842 6843 6844 6845 int zx_DEC_ATTR_hrxml_Stock(struct zx_ctx* c, struct zx_hrxml_Stock_s* x) 6846 { 6847 switch (x->gg.attr->g.tok) { 6848 6849 default: return 0; 6850 } 6851 } 6852 6853 int zx_DEC_ELEM_hrxml_Stock(struct zx_ctx* c, struct zx_hrxml_Stock_s* x) 6854 { 6855 struct zx_elem_s* el = x->gg.kids; 6856 switch (el->g.tok) { 6857 case zx_hrxml_Id_ELEM: 6858 if (!x->Id) 6859 x->Id = (struct zx_hrxml_Id_s*)el; 6860 return 1; 6861 case zx_hrxml_Symbol_ELEM: 6862 if (!x->Symbol) 6863 x->Symbol = el; 6864 return 1; 6865 case zx_hrxml_Exchange_ELEM: 6866 if (!x->Exchange) 6867 x->Exchange = el; 6868 return 1; 6869 6870 default: return 0; 6871 } 6872 } 6873 6874 6875 6876 6877 int zx_DEC_ATTR_hrxml_StringValue(struct zx_ctx* c, struct zx_hrxml_StringValue_s* x) 6878 { 6879 switch (x->gg.attr->g.tok) { 6880 case zx_description_ATTR: x->description = x->gg.attr; return 1; 6881 case zx_maxValue_ATTR: x->maxValue = x->gg.attr; return 1; 6882 case zx_minValue_ATTR: x->minValue = x->gg.attr; return 1; 6883 6884 default: return 0; 6885 } 6886 } 6887 6888 int zx_DEC_ELEM_hrxml_StringValue(struct zx_ctx* c, struct zx_hrxml_StringValue_s* x) 6889 { 6890 struct zx_elem_s* el = x->gg.kids; 6891 switch (el->g.tok) { 6892 6893 default: return 0; 6894 } 6895 } 6896 6897 6898 6899 6900 int zx_DEC_ATTR_hrxml_StructuredXMLResume(struct zx_ctx* c, struct zx_hrxml_StructuredXMLResume_s* x) 6901 { 6902 switch (x->gg.attr->g.tok) { 6903 6904 default: return 0; 6905 } 6906 } 6907 6908 int zx_DEC_ELEM_hrxml_StructuredXMLResume(struct zx_ctx* c, struct zx_hrxml_StructuredXMLResume_s* x) 6909 { 6910 struct zx_elem_s* el = x->gg.kids; 6911 switch (el->g.tok) { 6912 case zx_hrxml_ContactInfo_ELEM: 6913 if (!x->ContactInfo) 6914 x->ContactInfo = (struct zx_hrxml_ContactInfo_s*)el; 6915 return 1; 6916 case zx_hrxml_ExecutiveSummary_ELEM: 6917 if (!x->ExecutiveSummary) 6918 x->ExecutiveSummary = el; 6919 return 1; 6920 case zx_hrxml_Objective_ELEM: 6921 if (!x->Objective) 6922 x->Objective = el; 6923 return 1; 6924 case zx_hrxml_EmploymentHistory_ELEM: 6925 if (!x->EmploymentHistory) 6926 x->EmploymentHistory = (struct zx_hrxml_EmploymentHistory_s*)el; 6927 return 1; 6928 case zx_hrxml_EducationHistory_ELEM: 6929 if (!x->EducationHistory) 6930 x->EducationHistory = (struct zx_hrxml_EducationHistory_s*)el; 6931 return 1; 6932 case zx_hrxml_LicensesAndCertifications_ELEM: 6933 if (!x->LicensesAndCertifications) 6934 x->LicensesAndCertifications = (struct zx_hrxml_LicensesAndCertifications_s*)el; 6935 return 1; 6936 case zx_hrxml_MilitaryHistory_ELEM: 6937 if (!x->MilitaryHistory) 6938 x->MilitaryHistory = (struct zx_hrxml_MilitaryHistory_s*)el; 6939 return 1; 6940 case zx_hrxml_PatentHistory_ELEM: 6941 if (!x->PatentHistory) 6942 x->PatentHistory = (struct zx_hrxml_PatentHistory_s*)el; 6943 return 1; 6944 case zx_hrxml_PublicationHistory_ELEM: 6945 if (!x->PublicationHistory) 6946 x->PublicationHistory = (struct zx_hrxml_PublicationHistory_s*)el; 6947 return 1; 6948 case zx_hrxml_SpeakingEventsHistory_ELEM: 6949 if (!x->SpeakingEventsHistory) 6950 x->SpeakingEventsHistory = (struct zx_hrxml_SpeakingEventsHistory_s*)el; 6951 return 1; 6952 case zx_hrxml_Qualifications_ELEM: 6953 if (!x->Qualifications) 6954 x->Qualifications = (struct zx_hrxml_Qualifications_s*)el; 6955 return 1; 6956 case zx_hrxml_Languages_ELEM: 6957 if (!x->Languages) 6958 x->Languages = (struct zx_hrxml_Languages_s*)el; 6959 return 1; 6960 case zx_hrxml_Achievements_ELEM: 6961 if (!x->Achievements) 6962 x->Achievements = (struct zx_hrxml_Achievements_s*)el; 6963 return 1; 6964 case zx_hrxml_Associations_ELEM: 6965 if (!x->Associations) 6966 x->Associations = (struct zx_hrxml_Associations_s*)el; 6967 return 1; 6968 case zx_hrxml_References_ELEM: 6969 if (!x->References) 6970 x->References = (struct zx_hrxml_References_s*)el; 6971 return 1; 6972 case zx_hrxml_SecurityCredentials_ELEM: 6973 if (!x->SecurityCredentials) 6974 x->SecurityCredentials = (struct zx_hrxml_SecurityCredentials_s*)el; 6975 return 1; 6976 case zx_hrxml_ResumeAdditionalItems_ELEM: 6977 if (!x->ResumeAdditionalItems) 6978 x->ResumeAdditionalItems = (struct zx_hrxml_ResumeAdditionalItems_s*)el; 6979 return 1; 6980 case zx_hrxml_SupportingMaterials_ELEM: 6981 if (!x->SupportingMaterials) 6982 x->SupportingMaterials = (struct zx_hrxml_SupportingMaterials_s*)el; 6983 return 1; 6984 case zx_hrxml_ProfessionalAssociations_ELEM: 6985 if (!x->ProfessionalAssociations) 6986 x->ProfessionalAssociations = (struct zx_hrxml_ProfessionalAssociations_s*)el; 6987 return 1; 6988 case zx_hrxml_Comments_ELEM: 6989 if (!x->Comments) 6990 x->Comments = el; 6991 return 1; 6992 case zx_hrxml_RevisionDate_ELEM: 6993 if (!x->RevisionDate) 6994 x->RevisionDate = el; 6995 return 1; 6996 6997 default: return 0; 6998 } 6999 } 7000 7001 7002 7003 7004 int zx_DEC_ATTR_hrxml_SupplierId(struct zx_ctx* c, struct zx_hrxml_SupplierId_s* x) 7005 { 7006 switch (x->gg.attr->g.tok) { 7007 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 7008 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 7009 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 7010 7011 default: return 0; 7012 } 7013 } 7014 7015 int zx_DEC_ELEM_hrxml_SupplierId(struct zx_ctx* c, struct zx_hrxml_SupplierId_s* x) 7016 { 7017 struct zx_elem_s* el = x->gg.kids; 7018 switch (el->g.tok) { 7019 case zx_hrxml_IdValue_ELEM: 7020 if (!x->IdValue) 7021 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 7022 return 1; 7023 7024 default: return 0; 7025 } 7026 } 7027 7028 7029 7030 7031 int zx_DEC_ATTR_hrxml_SupportingMaterials(struct zx_ctx* c, struct zx_hrxml_SupportingMaterials_s* x) 7032 { 7033 switch (x->gg.attr->g.tok) { 7034 7035 default: return 0; 7036 } 7037 } 7038 7039 int zx_DEC_ELEM_hrxml_SupportingMaterials(struct zx_ctx* c, struct zx_hrxml_SupportingMaterials_s* x) 7040 { 7041 struct zx_elem_s* el = x->gg.kids; 7042 switch (el->g.tok) { 7043 case zx_hrxml_Link_ELEM: 7044 if (!x->Link) 7045 x->Link = el; 7046 return 1; 7047 case zx_hrxml_AttachmentReference_ELEM: 7048 if (!x->AttachmentReference) 7049 x->AttachmentReference = (struct zx_hrxml_AttachmentReference_s*)el; 7050 return 1; 7051 case zx_hrxml_Description_ELEM: 7052 if (!x->Description) 7053 x->Description = (struct zx_hrxml_Description_s*)el; 7054 return 1; 7055 7056 default: return 0; 7057 } 7058 } 7059 7060 7061 7062 7063 int zx_DEC_ATTR_hrxml_TTYTDD(struct zx_ctx* c, struct zx_hrxml_TTYTDD_s* x) 7064 { 7065 switch (x->gg.attr->g.tok) { 7066 7067 default: return 0; 7068 } 7069 } 7070 7071 int zx_DEC_ELEM_hrxml_TTYTDD(struct zx_ctx* c, struct zx_hrxml_TTYTDD_s* x) 7072 { 7073 struct zx_elem_s* el = x->gg.kids; 7074 switch (el->g.tok) { 7075 case zx_hrxml_FormattedNumber_ELEM: 7076 if (!x->FormattedNumber) 7077 x->FormattedNumber = el; 7078 return 1; 7079 7080 default: return 0; 7081 } 7082 } 7083 7084 7085 7086 7087 int zx_DEC_ATTR_hrxml_TaxId(struct zx_ctx* c, struct zx_hrxml_TaxId_s* x) 7088 { 7089 switch (x->gg.attr->g.tok) { 7090 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 7091 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 7092 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 7093 7094 default: return 0; 7095 } 7096 } 7097 7098 int zx_DEC_ELEM_hrxml_TaxId(struct zx_ctx* c, struct zx_hrxml_TaxId_s* x) 7099 { 7100 struct zx_elem_s* el = x->gg.kids; 7101 switch (el->g.tok) { 7102 case zx_hrxml_IdValue_ELEM: 7103 if (!x->IdValue) 7104 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 7105 return 1; 7106 7107 default: return 0; 7108 } 7109 } 7110 7111 7112 7113 7114 int zx_DEC_ATTR_hrxml_TaxonomyId(struct zx_ctx* c, struct zx_hrxml_TaxonomyId_s* x) 7115 { 7116 switch (x->gg.attr->g.tok) { 7117 case zx_description_ATTR: x->description = x->gg.attr; return 1; 7118 case zx_id_ATTR: x->id = x->gg.attr; return 1; 7119 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 7120 7121 default: return 0; 7122 } 7123 } 7124 7125 int zx_DEC_ELEM_hrxml_TaxonomyId(struct zx_ctx* c, struct zx_hrxml_TaxonomyId_s* x) 7126 { 7127 struct zx_elem_s* el = x->gg.kids; 7128 switch (el->g.tok) { 7129 7130 default: return 0; 7131 } 7132 } 7133 7134 7135 7136 7137 int zx_DEC_ATTR_hrxml_TaxonomyName(struct zx_ctx* c, struct zx_hrxml_TaxonomyName_s* x) 7138 { 7139 switch (x->gg.attr->g.tok) { 7140 case zx_version_ATTR: x->version = x->gg.attr; return 1; 7141 7142 default: return 0; 7143 } 7144 } 7145 7146 int zx_DEC_ELEM_hrxml_TaxonomyName(struct zx_ctx* c, struct zx_hrxml_TaxonomyName_s* x) 7147 { 7148 struct zx_elem_s* el = x->gg.kids; 7149 switch (el->g.tok) { 7150 7151 default: return 0; 7152 } 7153 } 7154 7155 7156 7157 7158 int zx_DEC_ATTR_hrxml_Telephone(struct zx_ctx* c, struct zx_hrxml_Telephone_s* x) 7159 { 7160 switch (x->gg.attr->g.tok) { 7161 7162 default: return 0; 7163 } 7164 } 7165 7166 int zx_DEC_ELEM_hrxml_Telephone(struct zx_ctx* c, struct zx_hrxml_Telephone_s* x) 7167 { 7168 struct zx_elem_s* el = x->gg.kids; 7169 switch (el->g.tok) { 7170 case zx_hrxml_FormattedNumber_ELEM: 7171 if (!x->FormattedNumber) 7172 x->FormattedNumber = el; 7173 return 1; 7174 7175 default: return 0; 7176 } 7177 } 7178 7179 7180 7181 7182 int zx_DEC_ATTR_hrxml_TermOfNotice(struct zx_ctx* c, struct zx_hrxml_TermOfNotice_s* x) 7183 { 7184 switch (x->gg.attr->g.tok) { 7185 7186 default: return 0; 7187 } 7188 } 7189 7190 int zx_DEC_ELEM_hrxml_TermOfNotice(struct zx_ctx* c, struct zx_hrxml_TermOfNotice_s* x) 7191 { 7192 struct zx_elem_s* el = x->gg.kids; 7193 switch (el->g.tok) { 7194 case zx_hrxml_Value_ELEM: 7195 if (!x->Value) 7196 x->Value = el; 7197 return 1; 7198 case zx_hrxml_Interval_ELEM: 7199 if (!x->Interval) 7200 x->Interval = el; 7201 return 1; 7202 7203 default: return 0; 7204 } 7205 } 7206 7207 7208 7209 7210 int zx_DEC_ATTR_hrxml_TimeMax(struct zx_ctx* c, struct zx_hrxml_TimeMax_s* x) 7211 { 7212 switch (x->gg.attr->g.tok) { 7213 case zx_unitOfMeasure_ATTR: x->unitOfMeasure = x->gg.attr; return 1; 7214 7215 default: return 0; 7216 } 7217 } 7218 7219 int zx_DEC_ELEM_hrxml_TimeMax(struct zx_ctx* c, struct zx_hrxml_TimeMax_s* x) 7220 { 7221 struct zx_elem_s* el = x->gg.kids; 7222 switch (el->g.tok) { 7223 7224 default: return 0; 7225 } 7226 } 7227 7228 7229 7230 7231 int zx_DEC_ATTR_hrxml_TimeOffAllowance(struct zx_ctx* c, struct zx_hrxml_TimeOffAllowance_s* x) 7232 { 7233 switch (x->gg.attr->g.tok) { 7234 case zx_timeOffType_ATTR: x->timeOffType = x->gg.attr; return 1; 7235 7236 default: return 0; 7237 } 7238 } 7239 7240 int zx_DEC_ELEM_hrxml_TimeOffAllowance(struct zx_ctx* c, struct zx_hrxml_TimeOffAllowance_s* x) 7241 { 7242 struct zx_elem_s* el = x->gg.kids; 7243 switch (el->g.tok) { 7244 case zx_hrxml_Description_ELEM: 7245 if (!x->Description) 7246 x->Description = (struct zx_hrxml_Description_s*)el; 7247 return 1; 7248 7249 default: return 0; 7250 } 7251 } 7252 7253 7254 7255 7256 int zx_DEC_ATTR_hrxml_Travel(struct zx_ctx* c, struct zx_hrxml_Travel_s* x) 7257 { 7258 switch (x->gg.attr->g.tok) { 7259 7260 default: return 0; 7261 } 7262 } 7263 7264 int zx_DEC_ELEM_hrxml_Travel(struct zx_ctx* c, struct zx_hrxml_Travel_s* x) 7265 { 7266 struct zx_elem_s* el = x->gg.kids; 7267 switch (el->g.tok) { 7268 case zx_hrxml_Applicable_ELEM: 7269 if (!x->Applicable) 7270 x->Applicable = el; 7271 return 1; 7272 case zx_hrxml_TravelFrequency_ELEM: 7273 if (!x->TravelFrequency) 7274 x->TravelFrequency = el; 7275 return 1; 7276 case zx_hrxml_TravelConsiderations_ELEM: 7277 if (!x->TravelConsiderations) 7278 x->TravelConsiderations = el; 7279 return 1; 7280 7281 default: return 0; 7282 } 7283 } 7284 7285 7286 7287 7288 int zx_DEC_ATTR_hrxml_TravelDirections(struct zx_ctx* c, struct zx_hrxml_TravelDirections_s* x) 7289 { 7290 switch (x->gg.attr->g.tok) { 7291 case zx_lang_ATTR|zx_xml_NS: x->lang = x->gg.attr; return 1; 7292 7293 default: return 0; 7294 } 7295 } 7296 7297 int zx_DEC_ELEM_hrxml_TravelDirections(struct zx_ctx* c, struct zx_hrxml_TravelDirections_s* x) 7298 { 7299 struct zx_elem_s* el = x->gg.kids; 7300 switch (el->g.tok) { 7301 7302 default: return 0; 7303 } 7304 } 7305 7306 7307 7308 7309 int zx_DEC_ATTR_hrxml_UserArea(struct zx_ctx* c, struct zx_hrxml_UserArea_s* x) 7310 { 7311 switch (x->gg.attr->g.tok) { 7312 7313 default: return 0; 7314 } 7315 } 7316 7317 int zx_DEC_ELEM_hrxml_UserArea(struct zx_ctx* c, struct zx_hrxml_UserArea_s* x) 7318 { 7319 struct zx_elem_s* el = x->gg.kids; 7320 switch (el->g.tok) { 7321 7322 default: return 0; 7323 } 7324 } 7325 7326 7327 7328 7329 int zx_DEC_ATTR_hrxml_UserId(struct zx_ctx* c, struct zx_hrxml_UserId_s* x) 7330 { 7331 switch (x->gg.attr->g.tok) { 7332 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 7333 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 7334 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 7335 7336 default: return 0; 7337 } 7338 } 7339 7340 int zx_DEC_ELEM_hrxml_UserId(struct zx_ctx* c, struct zx_hrxml_UserId_s* x) 7341 { 7342 struct zx_elem_s* el = x->gg.kids; 7343 switch (el->g.tok) { 7344 case zx_hrxml_IdValue_ELEM: 7345 if (!x->IdValue) 7346 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 7347 return 1; 7348 7349 default: return 0; 7350 } 7351 } 7352 7353 7354 7355 7356 int zx_DEC_ATTR_hrxml_ValidFrom(struct zx_ctx* c, struct zx_hrxml_ValidFrom_s* x) 7357 { 7358 switch (x->gg.attr->g.tok) { 7359 case zx_dateDescription_ATTR: x->dateDescription = x->gg.attr; return 1; 7360 7361 default: return 0; 7362 } 7363 } 7364 7365 int zx_DEC_ELEM_hrxml_ValidFrom(struct zx_ctx* c, struct zx_hrxml_ValidFrom_s* x) 7366 { 7367 struct zx_elem_s* el = x->gg.kids; 7368 switch (el->g.tok) { 7369 case zx_hrxml_AnyDate_ELEM: 7370 if (!x->AnyDate) 7371 x->AnyDate = el; 7372 return 1; 7373 case zx_hrxml_YearMonth_ELEM: 7374 if (!x->YearMonth) 7375 x->YearMonth = el; 7376 return 1; 7377 case zx_hrxml_Year_ELEM: 7378 if (!x->Year) 7379 x->Year = el; 7380 return 1; 7381 case zx_hrxml_MonthDay_ELEM: 7382 if (!x->MonthDay) 7383 x->MonthDay = el; 7384 return 1; 7385 case zx_hrxml_StringDate_ELEM: 7386 if (!x->StringDate) 7387 x->StringDate = el; 7388 return 1; 7389 7390 default: return 0; 7391 } 7392 } 7393 7394 7395 7396 7397 int zx_DEC_ATTR_hrxml_ValidTo(struct zx_ctx* c, struct zx_hrxml_ValidTo_s* x) 7398 { 7399 switch (x->gg.attr->g.tok) { 7400 case zx_dateDescription_ATTR: x->dateDescription = x->gg.attr; return 1; 7401 7402 default: return 0; 7403 } 7404 } 7405 7406 int zx_DEC_ELEM_hrxml_ValidTo(struct zx_ctx* c, struct zx_hrxml_ValidTo_s* x) 7407 { 7408 struct zx_elem_s* el = x->gg.kids; 7409 switch (el->g.tok) { 7410 case zx_hrxml_AnyDate_ELEM: 7411 if (!x->AnyDate) 7412 x->AnyDate = el; 7413 return 1; 7414 case zx_hrxml_YearMonth_ELEM: 7415 if (!x->YearMonth) 7416 x->YearMonth = el; 7417 return 1; 7418 case zx_hrxml_Year_ELEM: 7419 if (!x->Year) 7420 x->Year = el; 7421 return 1; 7422 case zx_hrxml_MonthDay_ELEM: 7423 if (!x->MonthDay) 7424 x->MonthDay = el; 7425 return 1; 7426 case zx_hrxml_StringDate_ELEM: 7427 if (!x->StringDate) 7428 x->StringDate = el; 7429 return 1; 7430 7431 default: return 0; 7432 } 7433 } 7434 7435 7436 7437 7438 int zx_DEC_ATTR_hrxml_Verification(struct zx_ctx* c, struct zx_hrxml_Verification_s* x) 7439 { 7440 switch (x->gg.attr->g.tok) { 7441 7442 default: return 0; 7443 } 7444 } 7445 7446 int zx_DEC_ELEM_hrxml_Verification(struct zx_ctx* c, struct zx_hrxml_Verification_s* x) 7447 { 7448 struct zx_elem_s* el = x->gg.kids; 7449 switch (el->g.tok) { 7450 case zx_hrxml_ContactInfo_ELEM: 7451 if (!x->ContactInfo) 7452 x->ContactInfo = (struct zx_hrxml_ContactInfo_s*)el; 7453 return 1; 7454 case zx_hrxml_ReasonForLeaving_ELEM: 7455 if (!x->ReasonForLeaving) 7456 x->ReasonForLeaving = el; 7457 return 1; 7458 case zx_hrxml_PermissionToContact_ELEM: 7459 if (!x->PermissionToContact) 7460 x->PermissionToContact = el; 7461 return 1; 7462 case zx_hrxml_VerifyEmployment_ELEM: 7463 if (!x->VerifyEmployment) 7464 x->VerifyEmployment = el; 7465 return 1; 7466 case zx_hrxml_EligibleForRehire_ELEM: 7467 if (!x->EligibleForRehire) 7468 x->EligibleForRehire = el; 7469 return 1; 7470 case zx_hrxml_AttendanceRating_ELEM: 7471 if (!x->AttendanceRating) 7472 x->AttendanceRating = el; 7473 return 1; 7474 case zx_hrxml_OverallPerformanceRating_ELEM: 7475 if (!x->OverallPerformanceRating) 7476 x->OverallPerformanceRating = el; 7477 return 1; 7478 case zx_hrxml_QuestionAnswerPair_ELEM: 7479 if (!x->QuestionAnswerPair) 7480 x->QuestionAnswerPair = el; 7481 return 1; 7482 7483 default: return 0; 7484 } 7485 } 7486 7487 7488 7489 7490 int zx_DEC_ATTR_hrxml_VerticalAccuracy(struct zx_ctx* c, struct zx_hrxml_VerticalAccuracy_s* x) 7491 { 7492 switch (x->gg.attr->g.tok) { 7493 7494 default: return 0; 7495 } 7496 } 7497 7498 int zx_DEC_ELEM_hrxml_VerticalAccuracy(struct zx_ctx* c, struct zx_hrxml_VerticalAccuracy_s* x) 7499 { 7500 struct zx_elem_s* el = x->gg.kids; 7501 switch (el->g.tok) { 7502 7503 default: return 0; 7504 } 7505 } 7506 7507 7508 7509 7510 int zx_DEC_ATTR_hrxml_VisaStatus(struct zx_ctx* c, struct zx_hrxml_VisaStatus_s* x) 7511 { 7512 switch (x->gg.attr->g.tok) { 7513 case zx_countryCode_ATTR: x->countryCode = x->gg.attr; return 1; 7514 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 7515 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 7516 7517 default: return 0; 7518 } 7519 } 7520 7521 int zx_DEC_ELEM_hrxml_VisaStatus(struct zx_ctx* c, struct zx_hrxml_VisaStatus_s* x) 7522 { 7523 struct zx_elem_s* el = x->gg.kids; 7524 switch (el->g.tok) { 7525 7526 default: return 0; 7527 } 7528 } 7529 7530 7531 7532 7533 int zx_DEC_ATTR_hrxml_Weight(struct zx_ctx* c, struct zx_hrxml_Weight_s* x) 7534 { 7535 switch (x->gg.attr->g.tok) { 7536 case zx_description_ATTR: x->description = x->gg.attr; return 1; 7537 case zx_interval_ATTR: x->interval = x->gg.attr; return 1; 7538 case zx_maxValue_ATTR: x->maxValue = x->gg.attr; return 1; 7539 case zx_minValue_ATTR: x->minValue = x->gg.attr; return 1; 7540 7541 default: return 0; 7542 } 7543 } 7544 7545 int zx_DEC_ELEM_hrxml_Weight(struct zx_ctx* c, struct zx_hrxml_Weight_s* x) 7546 { 7547 struct zx_elem_s* el = x->gg.kids; 7548 switch (el->g.tok) { 7549 7550 default: return 0; 7551 } 7552 } 7553 7554 7555 7556 7557 int zx_DEC_ATTR_hrxml_WorkSite(struct zx_ctx* c, struct zx_hrxml_WorkSite_s* x) 7558 { 7559 switch (x->gg.attr->g.tok) { 7560 7561 default: return 0; 7562 } 7563 } 7564 7565 int zx_DEC_ELEM_hrxml_WorkSite(struct zx_ctx* c, struct zx_hrxml_WorkSite_s* x) 7566 { 7567 struct zx_elem_s* el = x->gg.kids; 7568 switch (el->g.tok) { 7569 case zx_hrxml_WorkSiteName_ELEM: 7570 if (!x->WorkSiteName) 7571 x->WorkSiteName = el; 7572 return 1; 7573 case zx_hrxml_WorkSiteId_ELEM: 7574 if (!x->WorkSiteId) 7575 x->WorkSiteId = (struct zx_hrxml_WorkSiteId_s*)el; 7576 return 1; 7577 case zx_hrxml_Details_ELEM: 7578 if (!x->Details) 7579 x->Details = (struct zx_hrxml_Details_s*)el; 7580 return 1; 7581 case zx_hrxml_PostalAddress_ELEM: 7582 if (!x->PostalAddress) 7583 x->PostalAddress = (struct zx_hrxml_PostalAddress_s*)el; 7584 return 1; 7585 case zx_hrxml_TravelDirections_ELEM: 7586 if (!x->TravelDirections) 7587 x->TravelDirections = (struct zx_hrxml_TravelDirections_s*)el; 7588 return 1; 7589 case zx_hrxml_ParkingInstructions_ELEM: 7590 if (!x->ParkingInstructions) 7591 x->ParkingInstructions = (struct zx_hrxml_ParkingInstructions_s*)el; 7592 return 1; 7593 case zx_hrxml_WorkSiteEnvironment_ELEM: 7594 if (!x->WorkSiteEnvironment) 7595 x->WorkSiteEnvironment = (struct zx_hrxml_WorkSiteEnvironment_s*)el; 7596 return 1; 7597 case zx_hrxml_UserArea_ELEM: 7598 if (!x->UserArea) 7599 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 7600 return 1; 7601 7602 default: return 0; 7603 } 7604 } 7605 7606 7607 7608 7609 int zx_DEC_ATTR_hrxml_WorkSiteEnvironment(struct zx_ctx* c, struct zx_hrxml_WorkSiteEnvironment_s* x) 7610 { 7611 switch (x->gg.attr->g.tok) { 7612 7613 default: return 0; 7614 } 7615 } 7616 7617 int zx_DEC_ELEM_hrxml_WorkSiteEnvironment(struct zx_ctx* c, struct zx_hrxml_WorkSiteEnvironment_s* x) 7618 { 7619 struct zx_elem_s* el = x->gg.kids; 7620 switch (el->g.tok) { 7621 case zx_hrxml_EnvironmentName_ELEM: 7622 if (!x->EnvironmentName) 7623 x->EnvironmentName = el; 7624 return 1; 7625 case zx_hrxml_EnvironmentId_ELEM: 7626 if (!x->EnvironmentId) 7627 x->EnvironmentId = (struct zx_hrxml_EnvironmentId_s*)el; 7628 return 1; 7629 case zx_hrxml_WorkSiteId_ELEM: 7630 if (!x->WorkSiteId) 7631 x->WorkSiteId = (struct zx_hrxml_WorkSiteId_s*)el; 7632 return 1; 7633 case zx_hrxml_Description_ELEM: 7634 if (!x->Description) 7635 x->Description = (struct zx_hrxml_Description_s*)el; 7636 return 1; 7637 case zx_hrxml_Considerations_ELEM: 7638 if (!x->Considerations) 7639 x->Considerations = (struct zx_hrxml_Considerations_s*)el; 7640 return 1; 7641 case zx_hrxml_UserArea_ELEM: 7642 if (!x->UserArea) 7643 x->UserArea = (struct zx_hrxml_UserArea_s*)el; 7644 return 1; 7645 7646 default: return 0; 7647 } 7648 } 7649 7650 7651 7652 7653 int zx_DEC_ATTR_hrxml_WorkSiteId(struct zx_ctx* c, struct zx_hrxml_WorkSiteId_s* x) 7654 { 7655 switch (x->gg.attr->g.tok) { 7656 case zx_idOwner_ATTR: x->idOwner = x->gg.attr; return 1; 7657 case zx_validFrom_ATTR: x->validFrom = x->gg.attr; return 1; 7658 case zx_validTo_ATTR: x->validTo = x->gg.attr; return 1; 7659 7660 default: return 0; 7661 } 7662 } 7663 7664 int zx_DEC_ELEM_hrxml_WorkSiteId(struct zx_ctx* c, struct zx_hrxml_WorkSiteId_s* x) 7665 { 7666 struct zx_elem_s* el = x->gg.kids; 7667 switch (el->g.tok) { 7668 case zx_hrxml_IdValue_ELEM: 7669 if (!x->IdValue) 7670 x->IdValue = (struct zx_hrxml_IdValue_s*)el; 7671 return 1; 7672 7673 default: return 0; 7674 } 7675 } 7676 7677 7678 /* EOF -- c/zx-hrxml-dec.c */ 7679