I tried to import an SVG generated from a CAD program. It looks fine in all web browsers (chrome, Mozilla, ...) but when importing in Illustrator, some elements are missing. only the black elements are visible in AI.
What Do I have to change in the SVG file, so the import will work?
Maybe there are too many clipping paths.
Does it open well in Inkscape? If so, export it as a PDF (or whatever format is good for you) from there in order to get it into Illustrator.
There is an invalid duplicate </style> closing tag on line 23 to begin with which causes the border of the artboard/ drawing board to not appear in the first place and the rest seems down to this being exclusively web formatting and only using strokes everywhere. The paths are actually all there once you twirl down, they just have no strokes applied at all because AI can't interpret the CSS definitions. As suggested, this would need to be fixed/ converted in another tool or exported with different options.
we asked the CAD tool provider. They fixed the output for the second </style>.
Now the file is W3C compliant see diffpair_clean.svg.
All browsers and also Inkscape can open it and display it right. Just AI is not getting it. Any Idea???