xml


Visual Studio XML formatting messed up


I have this problem present in various visual studio version I used over the past 3 years (2010,2013,2015) and I just can't solve it. My XML document formation messes up. The thing is that some XMLs are formatted just fine and some are not.
For example I want to have it like this:
<?xml version="1.0" encoding="utf-8"?>
<MGL_Object>
<rendering:MGL_IBLight
name="ibl_tex_sunset_bg"
texture_prefix="tex_sunset"
rotation="-180"
intensity="1"
reflection_compression="1"
dynamic_range_normalization="4000"
gtr1="0"
/>
<rendering:MGL_LightSetting
name="light_settings_bg"
use_ao="1"
image_based_light="ibl_tex_sunset_bg"
/>
</MGL_Object>
But if I format document (Ctrl+K,Ctrl+D) I get this
<MGL_Object>
<rendering:MGL_IBLight
name="ibl_tex_sunset_bg"texture_prefix="tex_sunset"rotation="-180"intensity="1"reflection_compression="1"dynamic_range_normalization="4000"gtr1="0"/><rendering:MGL_LightSetting
name="light_settings_bg"use_ao="1"image_based_light="ibl_tex_sunset_bg"/></MGL_Object>
I just don't get it why.
Here are screen shots from before and after.
after
And also WHY some of the parts are underlined? I don't use any schema to validate XML!
Also while editing such underlined XML I have troubles as it is not well formatted on the fly and auto completion totally messes thing up.

Related Links

XML to HTML Generator with Style template
XPath expression to select first instance of element in repeating parent node
Getting xml parent node tag name with child node value using XSLT
Get all the albums of one artist
JSF 1.2 Mojarra View State encryption - GZip Error - java.io.IOException: Not in GZIP format
Error when changing mandatoriness constraint on XML column
xslt to rename nodes based on recursive position [closed]
cakephp how can I read data from a xml webservice?
What is meant by XML Validation?
XSLT to remove instances of element in XML
XML VB.net not finding property
grab data from xml file
Eclipse formatter for XML like Java
Error in Retrieving XML data into ArrayCollection through HTTPService in FLEX
Go xml unmarshalling
Convert Italic XML Tags into WordML Tags II

Categories

HOME
phantom-dsl
grok
phpword
scikit-learn
design-patterns
codenvy
wakanda
apache-jena
battery
rendering
seo
cakephp-3.4
parameters
regular-language
crystal-lang
resultset
datastage
jxl
nancy
heat
mongodb-csharp
imessage
jquery-ias
libigl
string-concatenation
scriptella
tosca
short-url
mount
fat
ms-access-2003
ceylon
classcastexception
carriage-return
git-rewrite-history
jpad
xdocreport
sim-card
signals-slots
trigonometry
attributeerror
android-ibeacon
glm-math
xmldocument
apache-directory
stylecop
oim
snapchat
mesosphere
nanoc
dotnet-httpclient
configurationmanager
trojan
context-switch
oracleclient
boo
wso2developerstudio
mapinfo
avspeechsynthesizer
nss
nupic
sapi
assertion
java-money
jdi
visual-sourcesafe-2005
lasso
nutiteq
uvc
dot.js
java-security
filesplitting
raygun
malformedurlexception
dct
dot42
ecslidingviewcontroller
notorm
c++builder-xe5
dtmf
cffile
dolby-audio-api
font-awesome-4.0.0
server-administration
apache-abdera
asplinkbutton
device-width
web-notifications
robotlegs
vfs
agility.js
cgbitmapcontextcreate
instantiationexception
build-environment
wcf-instancing

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App