Ошибка error parsing attribute name

I am attempting to make a card game conversion for a popular card game. I am attempting to make an xml file with all card data. I have attempted many things but still come up with the same error when attempting to run with any browser:

This page contains the following errors:

error on line 8 at column 10: error parsing attribute name
Below is a rendering of the page up to the first error.

Gorgona 500

Here is the code starting from line 6 to 14.

<cardId ="01">
<type name = "Boss">
  <title>Gorgona</title>
  <xp>500 XP</xp>
  <treasureIcon>Treasure</treasureIcon>
  <heading>Queen of Medusia</heading>
  <levelUp>Level Up: Choose a Hero in town. Immediately kill that Hero and place it face-down in your scorekeeping area.</levelUp>
  </type>
</cardId>

Here is the code in its entirety:

<?xml version="1.0" encoding="UTF-8"?>

<BossCards>

<Card Id="01">
  <Type Name="Boss">
    <Title>Gorgona</Title>
    <Xp>500 XP</Xp>
    <TreasureIcon>Treasure</TreasureIcon>
    <Heading>Queen of Medusia</Heading>
    <LevelUp>Level Up: Choose a Hero in town. Immediately kill that Hero and place it face-down in your scorekeeping area.</LevelUp>
  </Type>
</Card>

<card Id ="02">
  <title>Seducia</title>
  <xp>600 XP</xp>
  <treasureIcon>Magic</treasureIcon>
  <type name = "Boss">
  <heading>Sorceress of Sexiness</heading>
  <levelUp>Level Up: You may search through town or the Hero decks, choose one Hero, and put it at the entrance to your dungeon.</levelUp>
</card>

<card>
  <title>Draculord</title>
  <xp>900 XP</xp>
  <cardId = "03">
  <treasureIcon>Ankh</treasureIcon>
  <type name = "Boss">
  <heading>Hypnotic Vampire</heading>
  <levelUp>Level Up: Target opponent reveals his or her hand to you. Take one card and put it into your hand.</levelUp>
</card>

<card>
  <title>Xyzax</title>
  <xp>750 XP</xp>
  <cardId = "04">
  <treasureIcon>Ankh</treasureIcon>
  <type name = "Boss">
  <heading>Progenitor Lich</heading>
  <levelUp>Level Up: Choose two cards from the discard pile and put them into your hand.</levelUp>
</card>

<card>
  <title>Robobo</title>
  <xp>400 XP</xp>
  <cardId = "05">
  <treasureIcon>Sword</treasureIcon>
  <type name = "Boss">
  <heading>Angry Golem</heading>
  <levelUp>Level Up: Each opponent must choose and destroy one Room in his or her dungeon.</levelUp>
</card>

<card>
  <title>Cerebellus</title>
  <xp>650 XP</xp>
  <cardId = "06">
  <treasureIcon>Magic</treasureIcon>
  <type name = "Boss">
  <heading>Father Brain</heading>
  <levelUp>Level Up: You may draw there Spell cards, then discard a Spell card.</levelUp>
</card>

<card>
  <title>Cleopatra</title>
  <xp>850 XP</xp>
  <cardId = "07">
  <treasureIcon>Thief</treasureIcon>
  <type name = "Boss">
  <heading>Mother of Mummies</heading>
  <levelUp>Level Up: Search the Room deck or discard pile for an Advanced Trap Room. You may immediately build the Room (over a Room with a matching treasure type).</levelUp>
</card>

<card>
  <title>King Croak</title>
  <xp>800 XP</xp>
  <cardId = "08">
  <treasureIcon>Fighter</treasureIcon>
  <type name = "Boss">
  <heading>Sultan of the Sewers</heading>
  <levelUp><b>Level Up:</b> Search the Room deck or discard pile for an Advanced Monster Room. You may immediately build the Room (over a Room with a matching treasure type).</levelUp>
</card>

</BossCards>

<card>
  <title>Xyzax</title>
  <xp>750 XP</xp>
  <cardId = "04">
  <treasureIcon>Ankh</treasureIcon>
  <type name = "Boss">
  <heading>Progenitor Lich</heading>
  <levelUp>Level Up: Choose two cards from the discard pile and put them into your hand.</levelUp>
</card>

<card>
  <title>Robobo</title>
  <xp>400 XP</xp>
  <cardId = "05">
  <treasureIcon>Sword</treasureIcon>
  <type name = "Boss">
  <heading>Angry Golem</heading>
  <levelUp>Level Up: Each opponent must choose and destroy one Room in his or her dungeon.</levelUp>
</card>

<card>
  <title>Cerebellus</title>
  <xp>650 XP</xp>
  <cardId = "06">
  <treasureIcon>Magic</treasureIcon>
  <type name = "Boss">
  <heading>Father Brain</heading>
  <levelUp>Level Up: You may draw there Spell cards, then discard a Spell card.</levelUp>
</card>

<card>
  <title>Cleopatra</title>
  <xp>850 XP</xp>
  <cardId = "07">
  <treasureIcon>Thief</treasureIcon>
  <type name = "Boss">
  <heading>Mother of Mummies</heading>
  <levelUp>Level Up: Search the Room deck or discard pile for an Advanced Trap Room. You may immediately build the Room (over a Room with a matching treasure type).</levelUp>
</card>

<card>
  <title>King Croak</title>
  <xp>800 XP</xp>
  <cardId = "08">
  <treasureIcon>Fighter</treasureIcon>
  <type name = "Boss">
  <heading>Sultan of the Sewers</heading>
  <levelUp><b>Level Up:</b> Search the Room deck or discard pile for an Advanced Monster Room. You may immediately build the Room (over a Room with a matching treasure type).</levelUp>
</card>

</BossCards>

<SpellCards>

<card>
  <cardId = "010">
  <title>Teleportation</title>
  <howManyInDeck>2</howManyInDeck>
  <type name = "Spell">
  <phaseIcon>Build</phaseIcon>
  <heading>Teleportation</heading>
  <ability>Send a Hero in your dungeon back to the first Room of your dungeon.</ability>
</card>

<card>
  <cardId = "011">
  <title>Assassin</title>
  <howManyInDeck>3</howManyInDeck>
  <type name = "Spell">
  <phaseIcon>Build</phaseIcon>
  <heading>Assassin</heading>
  <ability>Choose a Hero in an opponent's dungeon. Give that Hero +3 HPs until end of turn.</ability>
</card>

<card>
  <cardId = "012">
  <title>Fear</title>
  <howManyInDeck>2</howManyInDeck>
  <type name = "Spell">
  <phaseIcon>Build</phaseIcon>
  <heading>Fear</heading>
  <ability>Choose a Hero in any dungeon and send it back to town.</ability>
</card>

<card>
  <cardId = "013">
  <title>Freeze</title>
  <howManyInDeck>4</howManyInDeck>
  <type name = "Spell">
  <phaseIcon>Both</phaseIcon>
  <heading>Freeze</heading>
  <ability>Choose and deactivate one Room in any dungeon<i>(It has no damage, treasure, or abilities until end of turn).</i></ability>
</card>

<card>
  <cardId = "014">
  <title>Trepidation</title>
  <type name = "Spell">
  <phaseIcon>Adventure</phaseIcon>
  <heading>Trepidation</heading>
  <ability>Choose a player with at least two more Souls than you. No Hero enters that player's dungeon this turn.<i>(Any Heroes remain at the entrance to that dungeon).</i></ability>
</card>

<card>
  <cardId = "015">
  <title>Cave-In</title>
  <howManyInDeck>2</howManyInDeck>
  <type name = "Spell">
  <phaseIcon>Adventure</phaseIcon>
  <heading>Cave-In</heading>
  <ability>Destroy a Room in your dungeon. Kill any Hero in that Room.</ability>
</card>

<card>
  <cardId = "016">
  <title>Giant Size</title>
  <howManyInDeck>2</howManyInDeck>
  <type name = "Spell">
  <phaseIcon>Adventure</phaseIcon>
  <heading>Fear</heading>
  <ability>Give on Monster Room +3 damage until end of turn.</ability>
</card>

<card>
  <cardId = "017">
  <title>Motivation</title>
  <howManyInDeck>2</howManyInDeck>
  <type name = "Spell">
  <phaseIcon>Build</phaseIcon>
  <heading>Motivation</heading>
  <ability>If you have fewer Rooms that an opponent, you may build an extra Room this turn. <i>(You must declare this before any Rooms are revealed).</i></ability>
</card>

<card>
  <cardId = "018">
  <title>Princess in Peril</title>
  <howManyInDeck>2</howManyInDeck>
  <type name = "Spell">
  <phaseIcon>Build</phaseIcon>
  <heading>Princess in Peril</heading>
  <ability>Choose on Hero in town. Place it at the entrance to your dungeon.</ability>
</card>

<card>
  <cardId = "019">
  <title>Kobold Strike</title>
  <type name = "Spell">
  <phaseIcon>Build</phaseIcon>
  <heading>Kobold Strike</heading>
  <ability>No Rooms can be built this turn. Any face-down Room is returned to its owner's hand.</ability>
</card>

<card>
  <cardId = "020">
  <title>Zombie Attack</title>
  <howManyInDeck>2</howManyInDeck>
  <type name = "Spell">
  <phaseIcon>Build</phaseIcon>
  <heading>Zombie Attack</heading>
  <ability>Choose a dead Hero in an opponent's scorekeeping area. Send it back to the entrance of that player's dungeon. Until end of turn it has +2 HPs.</ability>
</card>

<card>
  <cardId = "021">
  <title>Jeopardy</title>
  <howManyInDeck>2</howManyInDeck>
  <type name = "Spell">
  <phaseIcon>Both</phaseIcon>
  <heading>Jeopardy</heading>
  <ability>All players must discard their hands, then draw one Spell card and two Room cards.</ability>
</card>

<card>
  <cardId = "022">
  <title>Counterspell</title>
  <howManyInDeck>2</howManyInDeck>
  <type name = "Spell">
  <phaseIcon>Both</phaseIcon>
  <heading>Counterspell</heading>
  <ability>Choose a Spell card that has just been declared. Cancel the effects of that Spell card.<i>(The cancelled Spell card is sent to the discard pile).</i></ability>
</card>

<card>
  <cardId = "023">
  <title>Soul Harvest</title>
  <type name = "Spell">
  <phaseIcon>Both</phaseIcon>
  <heading>Soul Harvest</heading>
  <ability>Choose a face-down Hero in your scorekeeping area and remove it from the game. Draw two Spell cards.</ability>
</card>

<card>
  <cardId = "024">
  <title>Annihilator</title>
  <howManyInDeck>2</howManyInDeck>
  <type name = "Spell">
  <phaseIcon>Adventure</phaseIcon>
  <heading>Annihilator</heading>
  <ability>Give one Trap Room +3 damage until end of turn.</ability>
</card>

<card>
  <cardId = "025">
  <title>Exhaustion</title>
  <type name = "Spell">
  <phaseIcon>Adventure</phaseIcon>
  <heading>Exhaustion</heading>
  <ability>Deal X damage to one Hero in your dungeon, where X is equal to the number of Rooms in your dungeon.</ability>
</card>

</SpellCards>

<HeroCards>

<card>
  <cardId = "030">
  <title>Fighter</title>
  <numberofPlayers>4</numberofPlayers>
  <soulValue>2</soulValue>
  <health>4</health>
  <wounds>2</wounds>
  <treasureIcon>Fighter</treasureIcon>
  <type name = "Epic Hero">
  <heading>Epic Hero</heading>
  <flavorText><b>Jarek, Squire to the Lion Knights:</b><br /> <i>As a squire, Jarek loved nothing more than stories and legends. He had no idea that he would someday become one.</i></flavorText>
 </card>

<card>
  <cardId = "031">
  <title>Mage</title>
  <numberofPlayers>4</numberofPlayers>
  <soulValue>1</soulValue>
  <health>4</health>
  <wounds>1</wounds>
  <treasureIcon>Fighter</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Brandork the Neverwrong</b><br /> <i>Schooled in seven flavors of magic, Brandork follows the teachings of Master Face, the Omniscient Celestial.</i></flavorText>
</card>

<card>
  <cardId = "032">
  <title>Fighter</title>
  <numberofPlayers>4</numberofPlayers>
  <soulValue>1</soulValue>
  <health>8</health>
  <wounds>1</wounds>
  <treasureIcon>Fighter</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Crystol and A'lan of Gerd</b><br /> <i>Bound by the unbreakable Ring of Gerd, these lovers became the most dangerous husband-wife team in the adventuring business.</i></flavorText>
</card>

<card>
  <cardId = "033">
  <title>Cleric</title>
  <numberofPlayers>3</numberofPlayers>
  <soulValue>1</soulValue>
  <health>6</health>
  <wounds>1</wounds>
  <treasureIcon>Cleric</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Charles the Young</b><br /> <i>Charles has his mother's permission to go adventuring, but he has to return before sundown.</i></flavorText>
</card>

<card>
  <cardId = "034">
  <title>Thief</title>
  <numberofPlayers>4</numberofPlayers>
  <soulValue>1</soulValue>
  <health>4</health>
  <wounds>1</wounds>
  <treasureIcon>Thief</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Lance Uppercut</b><br /> <i>With a bent blade and a clenched fist, he gathers shining treasures for the glory of the Keonish Empire.</i></flavorText>
</card>

<card>
  <cardId = "035">
  <title>Cleric</title>
  <numberofPlayers>4</numberofPlayers>
  <soulValue>1</soulValue>
  <health>4</health>
  <wounds>1</wounds>
  <treasureIcon>Cleric</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Pugi the Druidess</b><br /> <i>A defender of the wilderness, she wields the power of Nature. Flowers blossom in her footsteps, and life grows anew.</i></flavorText>
</card>

<card>
  <cardId = "036">
  <title>Cleric</title>
  <numberofPlayers>4</numberofPlayers>
  <soulValue>1</soulValue>
  <health>8</health>
  <wounds>1</wounds>
  <treasureIcon>Cleric</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Romero, the Indigo Friar</b><br /> <i>He is a dedicated man of the cloth who wants to see the world coated in blue. You might think he's depressed, but he's actually very, very happy.</i></flavorText>
</card>

<card>
  <cardId = "037">
  <title>Fighter</title>
  <numberofPlayers>3</numberofPlayers>
  <soulValue>1</soulValue>
  <health>6</health>
  <wounds>1</wounds>
  <treasureIcon>Fighter</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Samurai Tom</b><br /> <i>Not truly a samurai, this masterless ronin seeks honor and glory.</i></flavorText>
</card>

<card>
  <cardId = "038">
  <title>Thief</title>
  <numberofPlayers>2</numberofPlayers>
  <soulValue>1</soulValue>
  <health>6</health>
  <wounds>1</wounds>
  <treasureIcon>Thief</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Jesta the Rogue</b><br /> <i>"Okay, so you take the big guy on the left with the axe, you've got the two little ones on the right with swords, and I'll take this dangerous looking treasure chest with no lock over here..."</i></flavorText>
</card>

<card>
  <cardId = "039">
  <title>Mage</title>
  <numberofPlayers>4</numberofPlayers>
  <soulValue>1</soulValue>
  <health>8</health>
  <wounds>1</wounds>
  <treasureIcon>Mage</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Koey, the Last Dragon Mage</b><br /> <i>The survivor of Drakonia vowed to save the world from Kirax's reign with the power bestowed to him buy the last emerald dragon.</i></flavorText>
</card>

<card>
  <cardId = "040">
  <title>Mage</title>
  <numberofPlayers>2</numberofPlayers>
  <soulValue>1</soulValue>
  <health>4</health>
  <wounds>1</wounds>
  <treasureIcon>Mage</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Tieg and the Magic Bubble</b><br /> <i>Armed with his trusty bubble, Tieg braves dangerous castles and dungeons in search of the musical instruments stolen from his people.</i></flavorText>
</card>

<card>
  <cardId = "041">
  <title>Mage</title>
  <numberofPlayers>3</numberofPlayers>
  <soulValue>1</soulValue>
  <health>6</health>
  <wounds>1</wounds>
  <treasureIcon>Mage</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Kalish Ninefingers</b><br /> <i>The worst thief ever, Kalish lost a finger and his freedom in one night. Taught magic in prison buy his sorcerous cellmate, he now kills evil with fire.</i></flavorText>
</card>

<card>
  <cardId = "042">
  <title>Thief</title>
  <numberofPlayers>3</numberofPlayers>
  <soulValue>1</soulValue>
  <health>6</health>
  <wounds>1</wounds>
  <treasureIcon>Thief</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Kins Klauski, Mad Conquistador</b><br /> <i>"It's Hard for me to think about death, how insects and worms will eat me... I never think about death, I haven't even properly started to live yet."</i></flavorText>
</card>

<card>
  <cardId = "043">
  <title>Mage</title>
  <numberofPlayers>2</numberofPlayers>
  <soulValue>1</soulValue>
  <health>8</health>
  <wounds>1</wounds>
  <treasureIcon>Mage</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Dartteon, Elf Pyromancer</b><br /> <i>Some elves just want to watch the world burn.</i></flavorText>
</card>

<card>
  <cardId = "044">
  <title>Thief</title>
  <numberofPlayers>2</numberofPlayers>
  <soulValue>1</soulValue>
  <health>4</health>
  <wounds>1</wounds>
  <treasureIcon>Thief</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Joman Chimm, Cutpurse</b><br /> <i>From the twinkle in his eye, you might think he comes bearing gifts ...until you check your empty pockets.</i></flavorText>
</card>

<card>
  <cardId = "045">
  <title>Cleric</title>
  <numberofPlayers>2</numberofPlayers>
  <soulValue>1</soulValue>
  <health>8</health>
  <wounds>1</wounds>
  <treasureIcon>Cleric</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Delatorious, Angel of Light</b><br /> <i>Created by the Goddess of Light to defend Arcadia, this kid angel never misses a shot with his enchanted crossbow.</i></flavorText>
</card>

<card>
  <cardId = "046">
  <title>Mage</title>
  <numberofPlayers>2</numberofPlayers>
  <soulValue>1</soulValue>
  <health>6</health>
  <wounds>1</wounds>
  <treasureIcon>Mage</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Mitchell, the Judge</b><br /> <i>He has wandered the planes, hopelessly lost... ever since his wife, Nikki, sent him to the store for diamond dust sugar.</i></flavorText>
</card>

<card>
  <cardId = "047">
  <title>Cleric</title>
  <numberofPlayers>2</numberofPlayers>
  <soulValue>1</soulValue>
  <health>6</health>
  <wounds>1</wounds>
  <treasureIcon>Cleric</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Acacia, Warrior of Light</b><br /> <i>Acacia is a carefree soul who makes her own luck. A strong defender of good, she is undeterred by even the darkets dungeons.</i></flavorText>
</card>

<card>
  <cardId = "048">
  <title>Fighter</title>
  <numberofPlayers>2</numberofPlayers>
  <soulValue>1</soulValue>
  <health>8</health>
  <wounds>1</wounds>
  <treasureIcon>Fighter</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Johnny of the Evening Watch</b><br /> <i>A humble member of the Evening Watch, whose band o' brothers is sworn to forsake family, take the grey, and clear dungeons.</i></flavorText>
</card>

<card>
  <cardId = "049">
  <title>Fighter</title>
  <numberofPlayers>2</numberofPlayers>
  <soulValue>1</soulValue>
  <health>8</health>
  <wounds>1</wounds>
  <treasureIcon>Fighter</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Delatorious, Angel of Light</b><br /> <i>Created by the Goddess of Light to defend Arcadia, this kid angel never misses a shot with his enchanted crossbow.</i></flavorText>
</card>

<card>
  <cardId = "050">
  <title>The Fool</title>
  <numberofPlayers>2</numberofPlayers>
  <soulValue>1</soulValue>
  <health>2</health>
  <wounds>1</wounds>
  <treasureIcon>The Fool</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>The Fool is lured to the dungeon of the player with the fewest souls.</b><br /> <i>(In the case of a tie, he waits in town until the tie is broken).</i></flavorText>
</card>

<card>
  <cardId = "051">
  <title>Cleric</title>
  <numberofPlayers>2</numberofPlayers>
  <soulValue>1</soulValue>
  <health>4</health>
  <wounds>1</wounds>
  <treasureIcon>Cleric</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Nick the Masher</b><br /> <i>The young cleric was well-armed, and brave enough to take on the Dragon King himself. His credo: "I bash it with my mace."</i></flavorText>
</card>

<card>
  <cardId = "052">
  <title>Thief</title>
  <numberofPlayers>2</numberofPlayers>
  <soulValue>1</soulValue>
  <health>8</health>
  <wounds>1</wounds>
  <treasureIcon>Thief</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Sir Digby Apple, Ace Detective</b><br /> <i>He battles to keep the coffers filling, to keep his partners preening and to send a needless message of power to all of the unwilling</i></flavorText>
</card>

<card>
  <cardId = "053">
  <title>Fighter</title>
  <numberofPlayers>2</numberofPlayers>
  <soulValue>1</soulValue>
  <health>4</health>
  <wounds>1</wounds>
  <treasureIcon>Fighter</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Boden the Pantless</b><br /> <i>Boden's courage is matched only by his forgetfulness. The quest to find his misplaced armor continues!</i></flavorText>
</card>

<card>
  <cardId = "054">
  <title>Fighter</title>
  <numberofPlayers>2</numberofPlayers>
  <soulValue>1</soulValue>
  <health>6</health>
  <wounds>1</wounds>
  <treasureIcon>Fighter</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Fire's Breath, Heroine of Arcadia</b><br /> <i>The scarlet-haired warrior woman known as Fire's Breath has pledged her deadly twin blades to the fight for liberty.</i></flavorText>
</card>

<card>
  <cardId = "055">
  <title>Thief</title>
  <numberofPlayers>4</numberofPlayers>
  <soulValue>1</soulValue>
  <health>8</health>
  <wounds>1</wounds>
  <treasureIcon>Thief</treasureIcon>
  <type name = "Hero">
  <heading>Ordinary Hero</heading>
  <flavorText><b>Jerome, Kung Fu Monkey</b><br /> <i>A visitor from a distant land, this hyperactive monkey studied martial arts under the legendary Sifu Wang.</i></flavorText>
</card>

</HeroCards>

<EpicHeroCards>
<card>
  <cardId = "060">
  <title>Thief</title>
  <numberofPlayers>3</numberofPlayers>
  <soulValue>2</soulValue>
  <health>11</health>
  <wounds>2</wounds>
  <treasureIcon>Thief</treasureIcon>
  <type name = "Hero">
  <heading>Epic Hero</heading>
  <flavorText><b>Blackbeard Jake</b><br /> <i>He hid all the treasure he won from insult swordfighting in a booby trap-filled cave on the coast of a town called Astoria.</i></flavorText>
</card>

<card>
  <cardId = "061">
  <title>Mage</title>
  <numberofPlayers>2</numberofPlayers>
  <soulValue>2</soulValue>
  <health>13</health>
  <wounds>2</wounds>
  <treasureIcon>Mage</treasureIcon>
  <type name = "Hero">
  <heading>Epic Hero</heading>
  <flavorText><b>Terric Warhelm, Half-Elf Archmage</b><br /> <i>Weakened by an evil curse, this once mighty warrior donned the red robes and turned to magic. His spells are channelled through a magical helmet of untold power.</i></flavorText>
</card>

<card>
  <cardId = "062">
  <title>Fighter</title>
  <numberofPlayers>2</numberofPlayers>
  <soulValue>2</soulValue>
  <health>11</health>
  <wounds>2</wounds>
  <treasureIcon>Fighter</treasureIcon>
  <type name = "Hero">
  <heading>Epic Hero</heading>
  <flavorText><b>Frankov, the Envoy</b><br /> <i>This brave warrior stands alone against the evil that rules the world.</i></flavorText>
</card>

<card>
  <cardId = "063">
  <title>Cleric</title>
  <numberofPlayers>2</numberofPlayers>
  <soulValue>2</soulValue>
  <health>11</health>
  <wounds>2</wounds>
  <treasureIcon>Cleric</treasureIcon>
  <type name = "Hero">
  <heading>Epic Hero</heading>
  <flavorText><b>Katelyn, Angelic Healer</b><br /> <i>Among the most exalted defenders of righteousness, Katelyn is sometimes referred to as "altissima luce" -- highest light.</i></flavorText>
</card>

<card>
  <cardId = "064">
  <title>Thief</title>
  <numberofPlayers>2</numberofPlayers>
  <soulValue>2</soulValue>
  <health>13</health>
  <wounds>2</wounds>
  <treasureIcon>Thief</treasureIcon>
  <type name = "Hero">
  <heading>Epic Hero</heading>
  <flavorText><b>Cecil Leoran, Master Factotum</b><br /> <i>The ultimate jack-of-all-trades, Cecil isn't above taking mercenary work to earn gold and glory. But his real goal has never changed: to find a way to return his betrothed Nevra, sealed into a rapier, to her original form.</i></flavorText>
</card>

<card>
  <cardId = "065">
  <title>Thief</title>
  <numberofPlayers>2</numberofPlayers>
  <soulValue>2</soulValue>
  <health>11</health>
  <wounds>2</wounds>
  <treasureIcon>Thief</treasureIcon>
  <type name = "Hero">
  <heading>Epic Hero</heading>
  <flavorText><b>Hya, Legendary Shinobi</b><br /> <i>Arcadia's deadliest ninja, Hya abides by the proverb that revenge is a dish best served cold.</i></flavorText>
</card>

<card>
  <cardId = "066">
  <title>Thief</title>
  <numberofPlayers>3</numberofPlayers>
  <soulValue>2</soulValue>
  <health>11</health>
  <wounds>2</wounds>
  <treasureIcon>Thief</treasureIcon>
  <type name = "Hero">
  <heading>Epic Hero</heading>
  <flavorText><b>Blackbeard Jake</b><br /> <i>He hid all the treasure he won from insult swordfighting in a booby trap-filled cave on the coast of a town called Astoria.</i></flavorText>
</card>

<card>
  <cardId = "060">
  <title>Thief</title>
  <numberofPlayers>3</numberofPlayers>
  <soulValue>2</soulValue>
  <health>11</health>
  <wounds>2</wounds>
  <treasureIcon>Thief</treasureIcon>
  <type name = "Hero">
  <heading>Epic Hero</heading>
  <flavorText><b>Blackbeard Jake</b><br /> <i>He hid all the treasure he won from insult swordfighting in a booby trap-filled cave on the coast of a town called Astoria.</i></flavorText>
</card>

</EpicHeroCards>

<RoomCards>

<card>
  <cardId = "090">
  <type name = "Advanced Monster">
  <title></title>
  <roomIcon></roomIcon>
  <howmanyicons></howmanyicons>
  <ability></ability>
  <damage></damage>
</card>

<card>
  <cardId = "110">
  <type name = "Advanced Trap">
  <title></title>
  <roomIcon></roomIcon>
  <howmanyicons></howmanyicons>
  <ability></ability>
  <damage></damage>
</card>

<card>
  <cardId = "150">
  <type name = "Monster">
  <title></title>
  <roomIcon></roomIcon>
  <howmanyicons></howmanyicons>
  <ability></ability>
  <damage></damage>
</card>

<card>
  <cardId = "180">
  <type name = "Trap">
  <title></title>
  <roomIcon></roomIcon>
  <howmanyicons></howmanyicons>
  <ability></ability>
  <damage></damage>
</card>

</RoomCards>

   Нуф-Нуф

16.01.13 — 21:00

Вот таким кодом пробую прочитать ХМЛ

   ЧтениеXML = Новый ЧтениеXML;

   ЧтениеXML.ОткрытьФайл(адрес);

   Пока ЧтениеXML.Прочитать() Цикл

       
   КонеЦЦикла;

Валится при первой же попытке прочитать на

{Форма.Форма.Форма(162)}: Ошибка при вызове метода контекста (Прочитать)

   Пока ЧтениеXML.Прочитать() Цикл

по причине:

Ошибка разбора XML:  — [3,37]

Фатальная ошибка:

Specification mandate value for attribute addDa琀愀

SystemId: file://»адрес»

Вот сам ХМЛ

<?xml version=»1.0″ encoding=»unicode»?>

<form:Documents xmlns:form=»http://www.abbyy.com/FlexiCapture/Schemas/Export/FormData.xsd» xmlns:addData=»http://www.abbyy.com/FlexiCapture/Schemas/Export/AdditionalFormData.xsd»>

   <_Счет-фактура:_Счет-фактура addData:ImagePath=»Счет-фактура_29.11.2012_16.pdf» xmlns:_Счет-фактура=»http://www.abbyy.com/FlexiCapture/Schemas/Export/Счет-фактура.xsd»>

       <_Счет-Фактура>

           <_DocNum>034</_DocNum>

           <_DocDate>2012-11-29</_DocDate>

           <_IssCompany>Общество с ограниченной ответственностью</_IssCompany>

           <_IssINN>0000</_IssINN>

           <_IssKPP>0000</_IssKPP>

           <_DesCompany>Общество с ограниченной ответственностью</_DesCompany>

           <_DestINN>0000</_DestINN>

           <_DestKPP>0000</_DestKPP>

           <_Barcode/>

           <_FilePathName>0000</_FilePathName>

       </_Счет-Фактура>

   </_Счет-фактура:_Счет-фактура>

</form:Documents>

   Нуф-Нуф

1 — 16.01.13 — 21:01

сам хмл в ИЕ открывается отлично

   Нуф-Нуф

2 — 16.01.13 — 21:03

валится на второй попытке прочитать

   Нуф-Нуф

3 — 16.01.13 — 21:07

удалил «addData:ImagePath=»Счет-фактура_29.11.2012_16.pdf»»

стал валится на следующем атрибуте «xmlns:_Счет-фактура=»http://www.abbyy.com/FlexiCapture/Schemas/Export/Счет-фактура.xsd»»

{Форма.Форма.Форма(162)}: Ошибка при вызове метода контекста (Прочитать)

   Пока ЧтениеXML.Прочитать() Цикл

по причине:

Ошибка разбора XML:  — [3,35]

Фатальная ошибка:

Specification mandate value for attribute xmlns

SystemId: file:////test1/IGabdrakhmanov/Счет-фактура_29.11.2012_16.xml

   Нуф-Нуф

4 — 16.01.13 — 21:07

что это? косяк подготовки в хмл в стороннем ПО?

   Займись делом

5 — 16.01.13 — 21:19

А каково содержание файла «Счет-фактура.xsd»? Ощущение, что какого-то параметра не хватает.

   Нуф-Нуф

6 — 16.01.13 — 21:23

(5) хм. а как узнать содержание этого файла?

   Займись делом

7 — 16.01.13 — 21:31

(6) Не обращай внимание на (5). Бред я там написал :(

   ChMikle

8 — 16.01.13 — 21:32

(6) м.б. какие-то символы есть в этих строках, которые раньше узел закрывают ?

   lefthander

9 — 16.01.13 — 21:35

(0) А что внутри цикла? Как вы узлы считываете?

   Нуф-Нуф

10 — 16.01.13 — 21:36

оставил файл таким

<?xml version=»1.0″ encoding=»unicode»?>

<form>

   <_Счет-фактура>

       <_Счет-Фактура>

           <_DocNum>034</_DocNum>

           <_DocDate>2012-11-29</_DocDate>

           <_IssCompany>Общество с ограниченной ответственностью</_IssCompany>

           <_IssINN>0000</_IssINN>

           <_IssKPP>0000</_IssKPP>

           <_DesCompany>Общество с ограниченной ответственностью</_DesCompany>

           <_DestINN>0000</_DestINN>

           <_DestKPP>0000</_DestKPP>

           <_Barcode/>

           <_FilePathName>0000</_FilePathName>

       </_Счет-Фактура>

   </_Счет-фактура>

</form>

теперь валится на

{Форма.Форма.Форма(176)}: Ошибка при вызове метода контекста (Прочитать)

   Пока ЧтениеXML.Прочитать() Цикл

по причине:

Ошибка разбора XML:  — [10,9]

Фатальная ошибка:

error parsing attribute name

SystemId: file://»адрес»

   Нуф-Нуф

11 — 16.01.13 — 21:36

(9) ничего. просто прочитать узел за узлом

   lefthander

12 — 16.01.13 — 21:41

(11) попробуйте посмотреть, хоть в коде типовой, как это происходит.

У объекта ЧтениеXML много разных методов и свойств, одно из них значение, это как раз то куда выводятся значения узлов.

А у вас они куда выводятся? :)

В том виде как у вас ничего и не будет, кроме ошибок.

   Нуф-Нуф

13 — 16.01.13 — 21:43

(12) для с чего это.  у меня просто читаются узлы. самый простой код

   Нуф-Нуф

14 — 16.01.13 — 21:43

валидатор на http://www.w3schools.com/xml/xml_validator.asp говорит

This page contains the following errors:

error on line 3 at column 181: xmlns:_?????°????????????_???????µ??: ‘http://www.abbyy.com/FlexiCapture/Schemas/Export/?????°????????????_???????µ??.xsd’ is not a valid URI

   Нуф-Нуф

15 — 16.01.13 — 21:47

фак. придется завтра поставщика файлов мучить. а до завтра курить бамбук

   Нуф-Нуф

16 — 16.01.13 — 21:50

может есть какой-нить форум фанатов ХМЛ?

   alexei366

17 — 16.01.13 — 21:51

Мож кодировку у ЧтенияXML поставить, хотя наврятли поможет

   Займись делом

18 — 16.01.13 — 21:52

Вопрос: браузером xml открывает?

   Займись делом

19 — 16.01.13 — 21:53

Посмотрел в Юникоде 琀愀 — символы китайского алфавита… или японского кто их разберёт. Если браузер тоже не открывает, попробуй удалить <?xml version=»1.0″ encoding=»unicode»?>

   Займись делом

20 — 16.01.13 — 21:55

Вроде прочитал у меня (что он там начитал уже другой вопрос)

   Нуф-Нуф

21 — 16.01.13 — 22:00

в браузере ИЕ открывается

   Займись делом

22 — 16.01.13 — 22:05

В итоге помогло следующее:

Взять xml представленный в первом сообщении, кроме строки «<?xml version=»1.0″ encoding=»unicode»?>», сохранить с помощью блокнота в кодировке UTF-8.

   Нуф-Нуф

23 — 16.01.13 — 22:13

(22) спасибо!!!

заменил строчку на <?xml version=»1.0″ encoding=»UTF-8″?> и пересохранил в формате UTF-8

  

Нуф-Нуф

24 — 16.01.13 — 22:24

Всем большое спасибо за помощь!

Сейчас меня спас код

   Текст = Новый ТекстовыйДокумент;

   Текст.Прочитать(адрес);

   СтрокаТекста = Текст.ПолучитьТекст();

   СтрокаТекста = СтрЗаменить(СтрокаТекста,»unicode», «UTF-8»);

   Текст.УстановитьТекст(СтрокаТекста);

   Текст.Записать(адрес, КодировкаТекста.UTF8);

 

8.3.9.1850
УТ 11.3.2.199
Модуль обмена 1С-Битрикс 6.5.0.0

Суть проблемы: пытаюсь сделать импорт товаров из сайта в 1С через модуль в пункте «Помощник импорта товаров с сайта под управлением CMS 1C-Битрикс». Сначала идет получение XML-данных (норм), потом при анализе XML-данных выдает:

«{Обработка.Б_ПомощникИмпортаТоваровБитрикс.МодульОбъекта(102)}: Ошибка при вызове метода контекста (Прочитать): Ошибка разбора XML:  — [2,8]
Фатальная ошибка:
error parsing attribute name»

В админке на сайте в «Интеграция с 1С» в пункте Экспорт поставил инфоблок каталога — свой каталог (который нужно выгрузить). Выгрузка администраторам разрешена.

 

Написано почти русским языком «error parsing attribute name».
Т.е. в одном из товаров ошибка при разборе названия, либо какие-то спецсимволы затесались, либо ещё что-то.

Поставьте точку останова по ошибке в 1С и отловите, этот момент. Или сделайте вывод сообщения, чтобы понять на какой позиции ошибка.
После поправите её на сайте и проведете обмен.

 

Пользователь 2005837

Заглянувший

Сообщений: 13
Регистрация: 14.05.2018

#3

17.05.2018 10:02:54

Цитата
Алексей Беспалов написал:
Написано почти русским языком «error parsing attribute name».
Т.е. в одном из товаров ошибка при разборе названия, либо какие-то спецсимволы затесались, либо ещё что-то.

Поставьте точку останова по ошибке в 1С и отловите, этот момент. Или сделайте вывод сообщения, чтобы понять на какой позиции ошибка.
После поправите её на сайте и проведете обмен.

Спасибо за подсказку, но у меня на сайте один товар, который я создал вручную. Естественно, никаких там «спецсимволов» и прочего нет и быть не может, так как писал вручную. Причем сначала на русском, а сейчас проверил еще и на английском. Одна и та же ошибка.

 

Я даже попробовал создать товар с названием и характеристиками, состоящими только из цифр — все равно выдает ошибку при парсинге.
Как сделать отладку с возможностью посмотреть где конкретно ошибка не могу разобраться(
Запускаю отладку через конфигуратор (и ставлю остановку при ошибке), открывается 1С, там делаю все то же самое — и все
Та же самая ошибка, а как посмотреть расшифровки или подробнее — не знаю

 

Есть предположение, что может быть проблема в кодировке отдаваемого потока от сайта. Т.е. сайт возвращает текст в кодировке, которую не может распознать 1с. Отсюда (почти в самом начале) есть какие-то неразборные данные.

Вам нужно через отладчик посмотреть сам xml, либо попробовать получить этот же xml в браузере, т.е. послать команды авторизации checkauth, инициализации init и запроса данных с сайта query и посмотреть, что выдаст сайт.

Всем несогласным — мыло и веревка!

 

Пользователь 2005837

Заглянувший

Сообщений: 13
Регистрация: 14.05.2018

#6

17.05.2018 13:46:46

Цитата
Алексей Сипаев написал:
Есть предположение, что может быть проблема в кодировке отдаваемого потока от сайта. Т.е. сайт возвращает текст в кодировке, которую не может распознать 1с. Отсюда (почти в самом начале) есть какие-то неразборные данные.

Вам нужно через отладчик посмотреть сам xml, либо попробовать получить этот же xml в браузере, т.е. послать команды авторизации checkauth, инициализации init и запроса данных с сайта query и посмотреть, что выдаст сайт.

Вы можете, пожалуйста, подробнее объяснить как посмотреть этот xml через отладчик (хотя бы вкратце, а я погуглю), или как посмотреть xml в браузере? Спасибо!

 

ваш сайт/bitrix/admin/1c_exchange.php?type=get_catalog&mode=checkauth

в ответ будет «success PHPSESSID Айди сессии»

ваш сайт/bitrix/admin/1c_exchange.php?type=get_catalog&mode=query

в ответ будет нужная вам информация.

здесь и проверьте кодировку.

Всем несогласным — мыло и веревка!

 

Пользователь 2005837

Заглянувший

Сообщений: 13
Регистрация: 14.05.2018

#8

17.05.2018 15:49:53

Цитата
Алексей Сипаев написал:
/bitrix/admin/1c_exchange.php?type=get_catalog&mode=query

ID сессии получил, но второй запрос выдает пустую страницу

 

Пользователь 2005837

Заглянувший

Сообщений: 13
Регистрация: 14.05.2018

#9

17.05.2018 15:50:12

Цитата
Алексей Сипаев написал:
ваш сайт/bitrix/admin/1c_exchange.php?type=get_catalog&mode=checkauth

в ответ будет «success PHPSESSID Айди сессии»

ваш сайт/bitrix/admin/1c_exchange.php?type=get_catalog&mode=query

в ответ будет нужная вам информация.

здесь и проверьте кодировку.

ID сессии получил, но второй запрос выдает пустую страницу

UPD: так, я понял, я еще INIT не делал. Сейчас сделал, в итоге mode=query выдал страницу

 

Итак, сделал все три запроса, в конце получил вот это:
скрины по порядку обновления mode=query

Какой вывод я должен теперь сделать? Единственное, что тут не заполнено, это параметр BASE почему-то, что это значит?
До этого еще было куча других характеристик для товара, которые я отключил в настройках информационного блока (что-то типа CML_ATTRIBUTES и еще куча-куча всего, я их пока отключил для теста).

 

Сложно так заочно что-то сказать. Надо подключаться и смотреть. Если что пишите.

Да, насчет отладки, чтобы остановка сработала на ошибке, сделайте вот так:

https://ut11-bitrix.ru/faq-1c/1s-rezhim-otladki-fonovykh-zadaniy/

Сейчас обмен, как фоновое задание с ним уже сложнее работать стало.

 

Олег Корчагин,скорее всего нужно смотреть, что именно в 1с получается… Потому что там могут быть просто кракозябры

Всем несогласным — мыло и веревка!

 

Пользователь 2005837

Заглянувший

Сообщений: 13
Регистрация: 14.05.2018

#13

18.05.2018 10:28:42

Цитата
Алексей Беспалов написал:
Сложно так заочно что-то сказать. Надо подключаться и смотреть. Если что пишите.

Да, насчет отладки, чтобы остановка сработала на ошибке, сделайте вот так:

https://ut11-bitrix.ru/faq-1c/1s-rezhim-otladki-fonovykh-zadaniy/

Сейчас обмен, как фоновое задание с ним уже сложнее работать стало.

Все сделал по пунктам, ничего не изменилось вообще. Опять дошло до ошибки и все.

Цитата
Алексей Сипаев написал:
Олег Корчагин ,скорее всего нужно смотреть, что именно в 1с получается… Потому что там могут быть просто кракозябры

Как смотреть?  

 

Олег Корчагин, есть участок кода до парсинга. Там формируется список xml. Вот эти xml и посмотреть нужно в конфигурации в меню отладка — вычислить выражение и смотреть, что с xml…нужная ли кодировка отображается…

Всем несогласным — мыло и веревка!

 

Пользователь 2005837

Заглянувший

Сообщений: 13
Регистрация: 14.05.2018

#15

31.05.2018 16:41:16

С проблемой разобрался… Ну, как, вернее… Переустановил весь битрикс и шаблон в кодировке UTF-8 — и интеграция заработала без фатальных ошибок.

/close

I am attempting to fill a deck of cards data similar to a TCG into a xml file so I can pull the data from it later in Unity using C#. The error I am getting when trying to run it in any web browser is:

This page contains the following errors:

error on line 6 at column 8: error parsing attribute name

Below is a rendering of the page up to the first error.

Here is the code starting at line 6:

<cardId =»01″>

<type name = «Boss»>

<title>Gorgona</title>

<xp>500 XP</xp>

<treasureIcon>Treasure</treasureIcon>

<heading>Queen of Medusia</heading>

<levelUp>Level Up: Choose a Hero in town. Immediately kill that Hero and place it face-down in your scorekeeping area.</levelUp>

</type>

</cardId>

I’ve looked over it but can’t find what I am missing. If anyone could provide an answer that would be ideal. I am sure its something simple I am missing but I don’t see it.

Original author: ara…@gmail.com (May 11, 2012 22:59:48)

What steps will reproduce the problem?
Create a simple styled form that is supposed to export the info filled by the user to a php template that will be rendered to PDF and mailed.
Since i won’t keep the page i am working it too much time online, you can find the example i am using for my work bellow
While the smaller sample in the above mentioned example works as a charm, a longer form (lets say above 70 fields (mine has around 100 text fields) ends in a blank browser screen. Enabling the DOMPDF
warnings will cause the browser displaying the following (please ignore the …»

«…
DOMDocument::loadHTML() [domdocument.loadhtml]: error parsing attribute name in Entity, line: 433 DOMDocument::loadHTML() [domdocument.loadhtml]: Tag : invalid in Entity, line: 433 DOMDocument::loadHTML() [domdocument.loadhtml]: error parsing attribute name in Entity, line: 437 DOMDocument::loadHTML() [domdocument.loadhtml]: Tag : invalid in Entity, line: 437
…»

An online example available here:

http://coreyworrell.com/blog/article/php-html-email-pdf-attachment

What is the expected output? What do you see instead?

to work…:)

What version of dompdf are you using? What version of PHP? On what
operating system?

PHP Version 5.2.17
DOMPDF 0.6.0 beta 3

Please provide the HTML source code you want to convert, or any additional information.

Aside the files in the enclosed archive (not containing dompdf and swiftmail ) please find the bellow info regarding the environment this application is supposed to run on.

*from what dompdf setup.php displays ***
DOMDocument extension Yes 20031129
PCRE Yes Yes
Zlib Yes 1.1
MBString extension Yes Yes
GD Yes Yes
APC For better performances
No. Recommended for better performances
GMagick or IMagick Better with transparent PNG images
No. Recommended for better performances

The CPANEL displays the following:

main asp_tags Off
main file_uploads On
main include_path .:/usr/lib/php:/usr/local/lib/php
main max_execution_time 30
main max_input_time 30
main memory_limit 48M
main register_globals Off
main safe_mode Off
main session.save_path /tmp
main upload_max_filesize 50M
main zend_optimizer.version 3.3.0

Note: I am using a shared location so basically i can’t do anything with the server’s settings.

Thank you in advance.
n.

Original issue: http://code.google.com/p/dompdf/issues/detail?id=481

Понравилась статья? Поделить с друзьями:

Не пропустите эти материалы по теме:

  • Яндекс еда ошибка привязки карты
  • Ошибка ers фольксваген
  • Ошибка error out of table range
  • Ошибка error unable to execute
  • Ошибка error not found 0x80070490

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии