What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Looking for a XML checker

tubajedimr

New Member
Joined
Apr 6, 2010
Messages
441
Reaction score
24
Hey guys, I hope you understand this when I say, MY BRAIN HURTS!!

I'm getting an error. I'm not sure how servere or what exactly the error pertains too, and my brain hurts trying to figure it out.


It's simple:

"Warning! Could not parse "If" body node!"

which is coming from the attached profile I'm working on with eniac.

I don't know what specific If node. I have like a million of them.
If anyone can check this file for any inconsistencies or errors I will love you forever.


Thanks so much!
 

Attachments

<Vendor Name="Zlagk" Entry="3882" Type="Food" X="-560.1253" Y="-4217.204" Z="41.59082" />

f <-- This is stuck in there.
<Vendor Name="Huklah" Entry="3160" Type="Repair" X="-590.3455" Y="-4227.319" Z="38.3847" />


Don't know if that's giving the error or not.
 
Resolved!

If you take out the code below, your error goes away. I'm not exactly sure what's wrong with it other then If being inside another if with no else, but in theory it should work. I'd also look at the line

HTML:
<CustomBehavior File="RunMacro" Macro="/run LoadAddOn&quot;Blizzard_TrainerUI)&quot; f=ClassTrainerTrainButton f.e = 0 if f:GetScript&quot;OnUpdate&quot; then f:SetScript(&quot;OnUpdate&quot;, nil)else f:SetScript(&quot;OnUpdate&quot;, function(f,e) f.e=f.e+e if f.e&gt;.01 then f.e=0 f:Click() end end)end" NumOfTimes="1" WaitTime="2000" />
As it has IF and ELSE and THEN and END inside of it, maybe those need to be escaped out or something, If was php code or something I could tell you how to fix it, but remove this section and the error goes away.


HTML:
<If Condition="HasQuest(13620)">
	<If Condition="Me.Race == WoWRace.Troll">
		<UseItem ItemId="6948" QuestName="To Dinah, at Once!" QuestId="13620" />
		<CustomBehavior File="WaitTimer" WaitTime="20000"/>
		<CustomBehavior File="InteractWith" QuestId="13620" MobId="7952" NumOfTimes="1" CollectionDistance="5" ObjectType="Npc" X="-858.092" Y="-4883.042" Z="22.11625" />
		<CustomBehavior File="RunMacro" Macro="/run BuyMerchantItem(1, 1)" NumOfTimes="1" WaitTime="2000" />
		<CustomBehavior File="InteractWith" QuestId="13620" MobId="7953" NumOfTimes="1" CollectionDistance="5" ObjectType="Npc" X="-852.7795" Y="-4885.399" Z="22.02837" />
		<CustomBehavior File="RunMacro" Macro="/run LoadAddOn&quot;Blizzard_TrainerUI)&quot; f=ClassTrainerTrainButton f.e = 0 if f:GetScript&quot;OnUpdate&quot; then f:SetScript(&quot;OnUpdate&quot;, nil)else f:SetScript(&quot;OnUpdate&quot;, function(f,e) f.e=f.e+e if f.e&gt;.01 then f.e=0 f:Click() end end)end" NumOfTimes="1" WaitTime="2000" />
		<UseItem ItemId="8588" QuestName="To Dinah, at Once!" QuestId="13620" />
	</If>
</If>
 
Also the look at the following quest, you have most REM'd out, the reason this quest was erroring for you was because it's NpcIds not NpcId.

HTML:
<PickUp QuestName="The Wakening" QuestId="24960" GiverId="2307" GiverName="Caretaker Caice"/>
			<CustomBehavior QuestId="24960" File="TalkToAndListenToStory" NpcIds="49231" />
			<CustomBehavior QuestId="24960" File="TalkToAndListenToStory" NpcIds="38895" />
			<CustomBehavior QuestId="24960" File="TalkToAndListenToStory" NpcIds="49230" />
			<TurnIn QuestName="The Wakening" QuestId="24960" TurnInId="2307" TurnInName="Caretaker Caice" />
 
Also the look at the following quest, you have most REM'd out, the reason this quest was erroring for you was because it's NpcIds not NpcId.

HTML:
<PickUp QuestName="The Wakening" QuestId="24960" GiverId="2307" GiverName="Caretaker Caice"/>
			<CustomBehavior QuestId="24960" File="TalkToAndListenToStory" NpcIds="49231" />
			<CustomBehavior QuestId="24960" File="TalkToAndListenToStory" NpcIds="38895" />
			<CustomBehavior QuestId="24960" File="TalkToAndListenToStory" NpcIds="49230" />
			<TurnIn QuestName="The Wakening" QuestId="24960" TurnInId="2307" TurnInName="Caretaker Caice" />

This might be because of a behavior conflict.

I'm using the ones that came with 2.0.0.3740 which is parsed in the manner you quoted.
 
<Vendor Name="Zlagk" Entry="3882" Type="Food" X="-560.1253" Y="-4217.204" Z="41.59082" />

f <-- This is stuck in there.
<Vendor Name="Huklah" Entry="3160" Type="Repair" X="-590.3455" Y="-4227.319" Z="38.3847" />


Don't know if that's giving the error or not.

good catch. not the cause of the error, but good to be rid of it. :-)
 
If you take out the code below, your error goes away. I'm not exactly sure what's wrong with it other then If being inside another if with no else, but in theory it should work. I'd also look at the line

HTML:
<CustomBehavior File="RunMacro" Macro="/run LoadAddOn&quot;Blizzard_TrainerUI)&quot; f=ClassTrainerTrainButton f.e = 0 if f:GetScript&quot;OnUpdate&quot; then f:SetScript(&quot;OnUpdate&quot;, nil)else f:SetScript(&quot;OnUpdate&quot;, function(f,e) f.e=f.e+e if f.e&gt;.01 then f.e=0 f:Click() end end)end" NumOfTimes="1" WaitTime="2000" />
As it has IF and ELSE and THEN and END inside of it, maybe those need to be escaped out or something, If was php code or something I could tell you how to fix it, but remove this section and the error goes away.


HTML:
<If Condition="HasQuest(13620)">
	<If Condition="Me.Race == WoWRace.Troll">
		<UseItem ItemId="6948" QuestName="To Dinah, at Once!" QuestId="13620" />
		<CustomBehavior File="WaitTimer" WaitTime="20000"/>
		<CustomBehavior File="InteractWith" QuestId="13620" MobId="7952" NumOfTimes="1" CollectionDistance="5" ObjectType="Npc" X="-858.092" Y="-4883.042" Z="22.11625" />
		<CustomBehavior File="RunMacro" Macro="/run BuyMerchantItem(1, 1)" NumOfTimes="1" WaitTime="2000" />
		<CustomBehavior File="InteractWith" QuestId="13620" MobId="7953" NumOfTimes="1" CollectionDistance="5" ObjectType="Npc" X="-852.7795" Y="-4885.399" Z="22.02837" />
		<CustomBehavior File="RunMacro" Macro="/run LoadAddOn&quot;Blizzard_TrainerUI)&quot; f=ClassTrainerTrainButton f.e = 0 if f:GetScript&quot;OnUpdate&quot; then f:SetScript(&quot;OnUpdate&quot;, nil)else f:SetScript(&quot;OnUpdate&quot;, function(f,e) f.e=f.e+e if f.e&gt;.01 then f.e=0 f:Click() end end)end" NumOfTimes="1" WaitTime="2000" />
		<UseItem ItemId="8588" QuestName="To Dinah, at Once!" QuestId="13620" />

	</If>
</If>

this did in fact get rid of the parsing issue. now i gotta figure out why. that macro is a pain in the ass.
 
Yeah I think i even tried removing that part with the /loadaddon part and is still did it.
 
Back
Top